unable to use StackSet to deploy stack into different region

0

Hi, I am using codePipeline to create a stackset in order to deploy my lambda function in different region.

In the beginig of the codePipeline set, I specify the artifact store into ap-north-east-1 Enter image description here

And the following is how my code pipeline stage looks like Enter image description here

In the build stage, I have this buildspec.yaml, which package my source code and template-yaml to s3(ap-north-east-1, which I create manually earlier)

Enter image description here

I got failed in the Deploy stage 2nd part, the 1st part is creating a stackset and initiate a stack in ap-north-east-1

Enter image description here

1st part of the deploy stage looks like this: Enter image description here

2nd part of the deploy stage looks like this:(I am tring to expand the stack to the another 2 regions) Enter image description here

This is the detail of the error for the 2nd part of the deploy stage.

Enter image description here

Regions that is not in ap-north-east-1 are failed to create

The error details

ResourceLogicalId:DBShutDownFunction, ResourceType:AWS::Lambda::Function, ResourceStatusReason:Resource handler returned message: "Error occurred while GetObject. S3 Error Code: PermanentRedirect. S3 Error Message: The bucket is in this region: ap-northeast-1. Please use this region to retry the request, this is the error shows in the ap-northease-3 region.

Cancelled since failure tolerance has exceeded ,this is the error shows in the ap-east1 region.

Could anyone help?

  • Hi there.

    Can you share the status reason that failed? The image is hard to read. Thanks.

  • HI Joes,

    Sorry, I just realized the pictures are not able to be enlarged... The error said """ResourceLogicalId:DBShutDownFunction, ResourceType:AWS::Lambda::Function, ResourceStatusReason:Resource handler returned message: "Error occurred while GetObject. S3 Error Code: PermanentRedirect. S3 Error Message: The bucket is in this region: ap-northeast-1. Please use this region to retry the request""", this is the error shows in the ap-northease-3 region.

    """Cancelled since failure tolerance has exceeded""" ,this is the error shows in the ap-east1 region.

1 Answer
1

To deploy Lambda function into multiple regions, you must copy code artefacts to the buckets in regions where you want to have your functions. This mightt be helpful https://docs.aws.amazon.com/codepipeline/latest/userguide/actions-create-cross-region.html in configuring the pipeline.

profile picture
EXPERT
Kallu
answered 7 months 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