Created
May 12, 2017 23:34
-
-
Save philips/04199c1647670eb451af2c2686a91b8a to your computer and use it in GitHub Desktop.
machine parseable Terraform plan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 github.com/philips/tfjson | |
$ tfjson bar | |
{ | |
...secrets and stuff... | |
"vpc": { | |
"destroy": false | |
}, | |
"workers": { | |
"aws_autoscaling_group.workers": { | |
"desired_capacity": "2", | |
"destroy": false, | |
"destroy_tainted": false | |
}, | |
"destroy": false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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