Hello, I need help to fix this part of the code, I’m starting in terraform and I have some difficulties.
data "http" "lbc_iam_policy" {
url = "https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/main/docs/install/iam_policy.json"
# Optional request headers
request_headers = {
Accept = "application/json"
}
}
output "lbc_iam_policy" {
value = data.http.lbc_iam_policy.body
}
│ Warning: Deprecated attribute
│
│ on c4-01-lbc-datasources.tf line 12, in output "lbc_iam_policy":
│ 12: value = data.http.lbc_iam_policy.body
│
│ The attribute "body" is deprecated. Refer to the provider documentation for details.
│
│ (and one more similar warning elsewhere)