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
asked 2 years ago458 views
1 Answer
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
EXPERT
iwasa
answered 2 years ago

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