Multi-Account Cloud Deployment With Terraform And Github Actions
In this blog post, we will look at how to implement a multi-account deployment pipeline on AWS using GitHub Actions and Terraform.
We will assume that you have access to at least two AWS accounts: one to hold pipeline resources and one target account where resources will be deployed.
Architecture
We will use two accounts: a pipeline account and a target account. The target account is your dev/staging/prod account. Usually, there is more than one target account in a given pipeline, but we will use one for simplicity. The same approach can be extended to an arbitrary number of target accounts.