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
Terraform: Using JSON with JQ to filter and extract output values | |
================================================================= | |
- Sometimes we need clean, elegant extraction of values from the terraform output to pass data to a next stage pipeline. | |
- JSON and JQ make this reliable, simple and fun! | |
``` | |
gmonkey@tfvm:~/Ship/5ncn$ terraform output -json cluster_slave_private_addresses| jq .value | |
[ | |
"192.168.101.6", |