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

0

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."

已提问 2 年前856 查看次数
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's still not working, check this FAQ for multi-region deployment: https://aws.amazon.com/codedeploy/faqs/#Regions

profile picture
joahna
已回答 2 年前
  • 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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则