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
posta 2 anni fa464 visualizzazioni
1 Risposta
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
ESPERTO
iwasa
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande