Can AWS CloudFormation template access s3 from any region other than its current region?

0

I currently use AWS CloudFormation template to create resources in my users' account. Now, my cloudformation template is in an s3 bucket in region us-east-1 and my use case is that my if my users choose any region other than us-east-1 during creating the stack, then it is failing with the following error: "Error occurred while GetObject. S3 Error Code: AuthorizationHeaderMalformed. S3 Error Message: The authorization header is malformed; the region 'us-east-1' is wrong; expecting 'eu-central-1'". Please help me with some solution here. Thanks.

1 個回答
3

Hi there,

I understand that you want to create a CloudFormation stack using a template that is stored in your S3 bucket sitting in different region. Even though S3 is a global service which means you can be able to access its objects anywhere regardless of where it was created from. For example: if your S3 is created in us-east-1 you should be able to access its content even if you are in eu-central-1 given that you have necessary permissions to do so. However, things differ when you want to create a stack using a template stored in S3. To successfully create the ClodFormation stack, the template must be accessible to the user who is creating the stack and the stack must be created in the same region where the S3 bucket is. For more information on how to create a stack please refer to this documentation.

I hope you find this information helpful.

Cebi
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南