shellfirm icon indicating copy to clipboard operation
shellfirm copied to clipboard

Terraform

Open kaplanelad opened this issue 2 years ago • 6 comments

List of possible risky patterns:

  • terraform apply - with flag -auto-approve
  • terraform force-unlock - with flag -force
  • terraform state mv - without dryrun flag https://www.terraform.io/cli/commands/state/mv
  • terraform state replace-provider - with -auto-approve
  • terraform state rm - without -dry-run
  • terraform workspace delete - with -force

kaplanelad avatar Aug 03 '22 20:08 kaplanelad

If this hasn't been picked up yet, could I be assigned to it? 👀

inFocus7 avatar Aug 05 '22 00:08 inFocus7

sure, go ahead thank you. Let me know if you needs my assist.

kaplanelad avatar Aug 05 '22 06:08 kaplanelad

Hey @inFocus7 I summarize the risky patterns in Terraform and replace the issue description. WDYT?

kaplanelad avatar Aug 05 '22 11:08 kaplanelad

That sounds good! I'm working on a new branch off of the main repo right now. Is that fine? Or should I create a fork?

inFocus7 avatar Aug 05 '22 11:08 inFocus7

You need to fork this repo(until you become a core committer  😀 )

don't forget to add the documentation in two places:

  1. https://github.com/kaplanelad/shellfirm#risky-commands
  2. https://github.com/kaplanelad/shellfirm/tree/main/docs/checks

kaplanelad avatar Aug 05 '22 11:08 kaplanelad

Hey @inFocus7, Do you want to give me an example of your regex problem? i can help you to finish this PR regex example: ____ prompt command: ____ ignore prompt command: ____

kaplanelad avatar Sep 29 '22 20:09 kaplanelad