what
- Add
--format=backend-config
toatmos terraform generate backends
command
why
- Terraform supports
-backend-config
argument, which required the backend config files to have just the backend attributes withoutterraform.backend
header
references
test
atmos terraform generate backends --file-template backends/{tenant}-{environment}-{stage}-{component}.tfbackend --format backend-config --components infra/vpc
Writing backend config for the component 'infra/vpc' to file 'backends/tenant1-ue2-staging-infra-vpc.tfbackend'
Writing backend config for the component 'infra/vpc' to file 'backends/tenant1-ue2-test-1-infra-vpc.tfbackend'
Writing backend config for the component 'infra/vpc' to file 'backends/tenant1-ue2-dev-infra-vpc.tfbackend'
Writing backend config for the component 'infra/vpc' to file 'backends/tenant1-ue2-prod-infra-vpc.tfbackend'
Writing backend config for the component 'infra/vpc' to file 'backends/tenant2-ue2-staging-infra-vpc.tfbackend'
Writing backend config for the component 'infra/vpc' to file 'backends/tenant2-ue2-dev-infra-vpc.tfbackend'
Writing backend config for the component 'infra/vpc' to file 'backends/tenant2-ue2-prod-infra-vpc.tfbackend'