🚀 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, butterraform import
did not use the generatedvarfile
in--var-file
terraform clean
command deletesvarfile
,planfile
,.terraform
folder, '.terraform.lock.hcl' file, and the folder thatTF_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
- 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'