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

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

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

回答問題指南