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 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions