Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
machine parseable Terraform plan
$ export TERRAFORM_CONFIG=.terraformrc; $HOME/Downloads/tectonic/tectonic-installer/darwin/terraform plan -var-file terraform.tfvars -out bar -state terraform.tfstate ./platforms/aws
$ go get
$ tfjson bar
...secrets and stuff...
"vpc": {
"destroy": false
"workers": {
"aws_autoscaling_group.workers": {
"desired_capacity": "2",
"destroy": false,
"destroy_tainted": false
"destroy": false
Copy link

philips commented May 12, 2017

The cool thing is I scaled my ASG to 1 and you can see the plan will move it back to 2. See line #11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment