atmos terraform generate backend
purpose
Use this command to generate a Terraform backend config file for an Atmos terraform component in a stack.
Usage​
Execute the terraform generate backend
command like this:
atmos terraform generate backend <component> -s <stack>
This command generates a backend config file for an Atmos terraform component in a stack.
tip
Run atmos terraform generate backend --help
to see all the available options
Examples​
atmos terraform generate backend top-level-component1 -s tenant1-ue2-dev
atmos terraform generate backend infra/vpc -s tenant1-ue2-staging
atmos terraform generate backend test/test-component -s tenant1-ue2-dev
atmos terraform generate backend test/test-component-override-2 -s tenant2-ue2-prod
Arguments​
Argument | Description | Required |
---|---|---|
component | Atmos terraform component | yes |
Flags​
Flag | Description | Alias | Required |
---|---|---|---|
--stack | Atmos stack | -s | yes |
--dry-run | Dry run | no |
info
Refer to Terraform backend configuration for more details
on terraform
backends and supported formats