Skip to content

Instantly share code, notes, and snippets.

@nhomble
Created February 4, 2021 00:32
Show Gist options
  • Save nhomble/d4b39262f5d598d08f5889dddf4d5a0f to your computer and use it in GitHub Desktop.
Save nhomble/d4b39262f5d598d08f5889dddf4d5a0f to your computer and use it in GitHub Desktop.
terraform http provider - get map
data "http" "example" {
url = "https://checkpoint-api.hashicorp.com/v1/check/terraform"
# Optional request headers
request_headers = {
Accept = "application/json"
}
}
output "example" {
value = jsondecode(data.http.example.body)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment