How to set up cross-account deploymetn fromCodeCommit repo to EC2 instance in another account

0

Hi there, Thanks for reading. I was asked to set up a cross-account deployment process. We have CodeComint repo in one account and we want to deploy any changes to EC2 instance in another account. It is a Drupal website that we are hosting in the EC2 instance with S3 bucket for the media files and RDS instance for the DB. I amnot sure how to approach it and how the whole process should look like. I will appreciate any tips. Thanks.

Jakub
已提问 2 年前464 查看次数
1 回答
0

Hi, Jakub

You run Code Pipeline on Account A triggered by Code Commit in Account A.
By specifying CodeDeploy for account B in that deployment configuration, the CodeDeploy agent configured for account B will run on the EC2 instance for account B.

You can achieve cross-account access by setting your IAM role correctly.

The following link will be helpful.
https://ecnedaced-seirots.github.io/post/a/aws-crossaccount-pipeline-1/

profile picture
专家
iwasa
已回答 2 年前

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

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

回答问题的准则