Skip to content

Commit

Permalink
feat: approve all
Browse files Browse the repository at this point in the history
  • Loading branch information
lbennett-stacki committed May 1, 2024
1 parent 6f3bb52 commit 41cc4cb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@

Terraform if it was inspired by roulette.

50% chance of your `plan` or `apply` being an auto approved apply,
25% chance of your stack being destroyed.
Step up to the table!
Run a terraform command (`plan`, `apply` or `destroy`) and
potentially change your life forever.

Should only be used for Friday deploys.
- 50% chance of your stack being auto-approve applied
- 25% chance of your stack being auto-approve destroyed
- 100% chance you'll have the time of your life

Should only be used for Friday production deploys.

_Disclaimer: If you get fired for this,
that's very funny and I'd love to hear about it._

```bash
brew tap lbennett-stacki/taps
Expand All @@ -14,3 +22,6 @@ brew install terraform-roulette
cd some-really-important-stack
terraform-rouelette plan
```

> TODO: Replace terraform bin path with terraform-roulette.
> i.e. Alias terraform to terraform-boring and terraform-roulette to terraform.
4 changes: 2 additions & 2 deletions roulette/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
)

var overrides = map[string]int{
"destroy": 25,
"apply --auto-approve": 50,
"destroy --auto-approve": 25,
"apply --auto-approve": 50,
}

var overrideables = []string{"apply", "plan", "destroy"}
Expand Down

0 comments on commit 41cc4cb

Please sign in to comment.