Is it possible to use artifacts in an S3 Bucket From a Different Region To CodeDeploy Application

0

We have a CodeDeploy application running in Asia Pacific 2 and we want to use artifacts that were built and sent to an S3 bucket in US West 2. Is it possible to do this? At the moment if I try to do it the CodeDeploy process fails at the DownloadBundle event with this error message: "The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint." I am using the correct address (copied s3 uri from the s3 bucket). I suspect that error is a generic "can't find the url" type message. If it is a permission issue, can someone point me to how to allow this to work?

thanks

질문됨 2년 전732회 조회
1개 답변
0

Try using the S3 region-specific endpoint as per https://docs.aws.amazon.com/general/latest/gr/s3.html

Example: https://<your_bucket>.s3.us-west-2.amazonaws.com

Or try this: https://s3.amazonaws.com/<your_bucket>

If it still not working, check this FAQ for multi-region deployment: https://aws.amazon.com/codedeploy/faqs/#Regions

profile picture
joahna
답변함 2년 전
  • Hi. Thanks for that. Unfortunately when creating a deployment in CodeDeploy it only accepts urls in the format of s3://. I tried changing the out of the box s3:// url to include the region but it didn't work. Regarding the FAQs that you linked me to, I have a couple of questions: It says "copy the application bundle to an Amazon S3 bucket in each region". How do you copy the S3 bucket? It then goes on to say "then start the deployments using either a serial or parallel rollout across the regions". Where do you do this?

    thanks

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠