boltops-tools / terraspace

Terraspace: The Terraform Framework
https://terraspace.cloud
Apache License 2.0
674 stars 46 forks source link

fix taint and untaint and support pass through args #334

Closed tongueroo closed 11 months ago

tongueroo commented 11 months ago

This is a πŸ™‹β€β™‚οΈ feature or enhancement

Summary

Fix the taint and untaint commands from #331

taint example

❯ terraspace taint demo random_pet.this -allow-missing
Building .terraspace-cache/us-west-2/dev/stacks/demo
Current directory: .terraspace-cache/us-west-2/dev/stacks/demo
=> terraform taint -allow-missing random_pet.this
Resource instance random_pet.this has been marked as tainted.

untaint example

❯ terraspace untaint demo random_pet.this 
Building .terraspace-cache/us-west-2/dev/stacks/demo
Current directory: .terraspace-cache/us-west-2/dev/stacks/demo
=> terraform untaint random_pet.this
Resource instance random_pet.this has been successfully untainted.

Also, allow support for pass through arguments as seen above

Context

Related #331

How to Test

Run commands above.

Version Changes

Patch