Skip to content

Instantly share code, notes, and snippets.

View mikenabhan's full-sized avatar

Mike Nabhan mikenabhan

  • Akamai
  • Denver, Colorado
View GitHub Profile
@archmangler
archmangler / terraform-output-json-parsing
Last active October 27, 2022 04:16
Parsing Terraform JSON output
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",