- Developer merges PR into github "main" branch.
- Commit auto triggers CodePipeline execution.
- CodeBuild outputs artifacts into S3.
- CodePipeline auto deploys cloudformation stack into ACCOUNT1 Account.
- Developer reviews changes then approves deployment to ACCOUNT2 account.
If you need to make changes, amend the pipeline.json file and use the command:
aws codepipeline update-pipeline --cli-input-json file://pipeline.json