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

asked 2 years ago681 views
1 Answer
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
answered 2 years ago
  • 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

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