FairwindsOps / pentagon

A framework for building repeatable, containerized, cloud-based infrastructure as code with Kubernetes.
https://www.reactiveops.com
Apache License 2.0
183 stars 25 forks source link

Writes an outfile for more certainty of terraform apply #135

Closed geojaz closed 6 years ago

CLAassistant commented 6 years ago

CLA assistant check
All committers have signed the CLA.

ejether commented 6 years ago

Can you explain why this is better?

sudermanjr commented 6 years ago

Using an outfile ensures that the plan you see is what gets applied when you apply. It also allows for the un-prompted apply to happen.

IIRC this is the way that Terraform suggests you run it.

geojaz commented 6 years ago

Exactly- when you terraform plan without saving the output, it's just a dry-run. Then when you terraform apply, it does another terraform plan, asks you to accept that plan, and then runs it.