github cloudposse/atmos v1.4.20

latest releases: v1.88.1, v1, v1.88.0...
2 years ago

what

  • Update Terraform workspace calculation for legacy Spacelift stack processor

why

  • LegacyTransformStackConfigToSpaceliftStacks function in the Spacelift stack processor was used to transform the infrastructure stacks to Spacelift stacks using legacy code (and old versions of terraform-yaml-stack-config module) that does not take into account atmos.yaml CLI config - this is very old code that does not know anything about atmos CLI config and it was maintained to support the old versions of terraform-yaml-stack-config module (prior to 0.21.0)
  • TransformStackConfigToSpaceliftStacks function is used to transform the infrastructure stacks to Spacelift stacks and it has been maintained and improved (especially regarding Terraform workspace calculations)
  • LegacyTransformStackConfigToSpaceliftStacks function had very old algorithm to calculate Terraform workspace for Spacelift stacks, causing some issues with Terraform workspace being different from atmos workspace
  • This PR eliminates the old LegacyTransformStackConfigToSpaceliftStacks function and always uses the TransformStackConfigToSpaceliftStacks function, so Terraform workspace (and other features) should be the same when using the old and new versions of terraform-yaml-stack-config module

Don't miss a new atmos release

NewReleases is sending notifications on new releases.