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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ