boltops-tools / terraspace

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

adding tainting/untainting as a terraspace command #331

Closed AHaymond closed 1 year ago

AHaymond commented 1 year ago

This is a 🙋‍♂️ feature or enhancement.

Summary

Taint and untaint are very useful Terraform commands when you need to force the replacement of a resource. Moving these subcommands as first class citizens for Terraspace reduces overhead in management by no longer requiring a need to shift to the cache directory to drop into the terraform cli to perform such tasks.

This pull request adds them to the Terraspace list of subcommands that can easily be carried out without having to navigate to a cache directory.

Context

No context known of

Version Changes

unknown

danielcbaldwin commented 1 year ago

One of the few last things I need to "cd" into the cache directory for. Would be great to have this.

mhjenkins commented 1 year ago

Thanks @AHaymond! This will be really nice!

gradyplayer commented 1 year ago

Seems completely reasonable LGTM... (for all that is worth)

AHaymond commented 1 year ago

Any movement on bumping this command to a first class citizen?

tongueroo commented 1 year ago

Been a little busy. Will try to take a look soon. Mainly just needs some testing.

AHaymond commented 1 year ago

It sure would be nice to have to do less traversal into the cache folder to utilize underlying Terraform commands. A good alternative would be to create a pass through such as terraspace tc [stack] [terraform commands and arguments]