v1.3.5
🚀 Enhancements
Fix `terraform import` command. Add `terraform clean` command. Update spacelift processor Andriy Knysh (@aknysh) (#73)
what
- Fix
terraform importcommand - Add
terraform cleancommand - Update spacelift processor to use logical stack names and find all top-level stacks automatically by using
atmos.yamlCLI config
why
varfilewas generated, butterraform importdid not use the generatedvarfilein--var-fileterraform cleancommand deletesvarfile,planfile,.terraformfolder, '.terraform.lock.hcl' file, and the folder thatTF_DATA_DIRENV 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.yamlCLI 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
- Closes #70
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'