github cloudposse/atmos v1.12.1

latest releases: v1.107.0, v1, v1.106.1...
2 years ago

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 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 in atmos atlantis generate repo-config command

Don't miss a new atmos release

NewReleases is sending notifications on new releases.