Created
February 4, 2021 00:32
-
-
Save nhomble/d4b39262f5d598d08f5889dddf4d5a0f to your computer and use it in GitHub Desktop.
terraform http provider - get map
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
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