Cross-account deployement in AWS through Code-deploy service

Question:

We have two AWS account say as Dev and Prod. In Dev account,our code build,code-pipelines and Code-deploy services is configured with S3. However, In Prod account an auto-scaling group is running for the production websites.
As per our requirement, We want to deploy the code from dev account to Prod account with cross-account deployment. Basically, The code-build and code-pipelines will execute the code and by using code-deployment it will deploy in the Prod account’s Auto-scaling group.

Can someone give us some insight about to achieve the same.

Thanks

Answer:

CodePipeline supports cross-account actions, however it’s not currently configurable via the console and requires some extra roles to be configured.

Here’s a guide on how to make it work: https://docs.aws.amazon.com/codepipeline/latest/userguide/pipelines-create-cross-account.html

Leave a Reply