Application should be provisioned using Terraform. For each application that requires resources in AWS, create a Terraform root module for each account in which it will be deployed.
Code Block |
---|
infra/
applications/
example/
sandbox/
production/ |
To ensure that staging and production match, you can encapsulate stateful and compute resources into a module:
Code Block |
---|
infra/
applications/
example/
modules/
state/
compute/ |
You can then use these modules to provision resources in each account and add them to the appropriate clusters.
Code Block |
---|
Info |
The AWS Platform Guide now lives at thoughtbot.com Visit Application Terraform Modules to access this page's content |