Skip to main content

atmos terraform generate backend

purpose

Use this command to generate a Terraform backend config file for an Atmos terraform component in a stack.


atmos terraform generate backend --help

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

ArgumentDescriptionRequired
componentAtmos terraform componentyes

Flags

FlagDescriptionAliasRequired
--stackAtmos stack-syes
--dry-runDry runno

info

Refer to Terraform backend configuration for more details on terraform backends and supported formats