Is It Possible to CodeDeploy to an EC2 Instance In A Different Region


We have a CodeDeploy application in the US West 2 region. Is it possible to deploy to an EC2 instance that is in Asia Pacific 2? I tried and the Deployment just hung at the initial ApplicationStop event and eventually timed out. There were no errors in the code deploy agent logs. The CodeDeploy error after timing out was "The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint."

asked 2 years ago534 views
1 Answer

Try using the S3 region-specific endpoint as per

Example: https://<your_bucket>

Or try this:<your_bucket>

If it's still not working, check this FAQ for multi-region deployment:

profile picture
answered 2 years ago
  • Thanks for that. Unfortunately in CodeDeploy the target EC2 machine is only identified via a tag not a URL (as far as I can tell). It only presents to you tags for instances that are in the same region as the CodeDeploy application.

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