github cloudposse/atmos v1.3.5

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

🚀 Enhancements

Fix `terraform import` command. Add `terraform clean` command. Update spacelift processor @aknysh (#73)

what

  • Fix terraform import command
  • Add terraform clean command
  • Update spacelift processor to use logical stack names and find all top-level stacks automatically by using atmos.yaml CLI config

why

  • varfile was generated, but terraform import did not use the generated varfile in --var-file
  • terraform clean command deletes varfile, planfile, .terraform folder, '.terraform.lock.hcl' file, and the folder that TF_DATA_DIR ENV variable points to (usage: atmos terraform clean <component> -s=<stack>)
  • Make the Spacelift processor use the logical stack names (derived from the context) to generate Spacelift stack names and Spacelift folders. Support stack and component folders, tenant (and all attributes from the context), and complex imports (Globs, folders in imports). Make the Spacelift processor use atmos.yaml CLI config to be able to find all top-level stacks automatically. Maintain backwards compatibility with the old Spacelift stack processor logic (where a list of stack config files was provided).

references

related

terraform clean test

Deleting '.terraform' folder
Deleting '.terraform.lock.hcl' file
Deleting terraform varfile: tenant1-ue2-dev-test-component-override.terraform.tfvars.json
Deleting terraform planfile: tenant1-ue2-dev-test-component-override.planfile
Found ENV var TF_DATA_DIR=./test
Do you want to delete the folder './test'? (only 'yes' will be accepted to approve)
Enter a value: yes
Deleting folder './test'

Don't miss a new atmos release

NewReleases is sending notifications on new releases.