Skip to content

Commit

Permalink
Upgrade http provider "body" atribute to "response_body"
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ngu committed Aug 30, 2022
1 parent 32a859c commit b23c125
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ data "http" "bitbucket_ips" {
}

locals {
ip_range = tolist(jsondecode(data.http.bitbucket_ips.body).items[*].cidr)
ip_range = tolist(jsondecode(data.http.bitbucket_ips.response_body).items[*].cidr)
ipv4_range = compact([
for cidr in local.ip_range :
replace(cidr, "/.*[:].*/", "")
Expand Down
6 changes: 6 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
terraform {
required_version = ">= 0.12"
required_providers {
http = {
source = "hashicorp/http"
version = ">= 2.2.0, < 4.0.0"
}
}
}

0 comments on commit b23c125

Please sign in to comment.