what
- Update
atmos atlantis generate repo-config
command
why
- If an
atmos
component is derived from a base component, terraform workspace is calculated differently:- for a regular atmos component, terraform workspace is the stack name (e.g.
tenant1-ue2-prod
) - for a derived atmos component, terraform workspace is stack name + component name (e.g.
tenant1-ue2-prod-<component>
)
- for a regular atmos component, terraform workspace is the stack name (e.g.
For example, for the following vpc-2
atmos component
vpc-2:
metadata:
component: infra/vpc
terraform workspace in the tenant1-ue2-prod
stack will be tenant1-ue2-prod-vpc-2
- This logic is used everywhere in all atmos commands (e.g.
atmos terraform apply <component> -s <stack>
). It was missing inatmos atlantis generate repo-config
command