Get the latest tech news
Using Terraform Workspace for AWS multi account architectures
Building and managing AWs multi account architecture with Terraform workspaces. - maurobaraldi/terraform-workspaces-aws-multi-account
This is a example on how to build and manage an AWS multi account architecture using Terraform workspaces. As this example uses two accounts associated with environments, we will create 2 workspaces with names dev(development) and uat(user acceptance test). When defining the providers, the AWS in this case, we need to set the profile, that we dinamically retrieve from the terraform.workspace runtime variable.
Or read this on Hacker News