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
feita há 2 anos464 visualizações
1 Resposta
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
ESPECIALISTA
iwasa
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas