Description
A deprecation warning is issued by Terraform upon executing terraform validate after upgrading the hashicorp/aws provider to version 6.0.0
│ Warning: Deprecated attribute
│
│ on .terraform/modules/s3_bucket/main.tf line 623, in data "aws_iam_policy_document" "elb_log_delivery":
│ 623: for_each = { for k, v in local.elb_service_accounts : k => v if k == data.aws_region.current.name }
│
│ The attribute "name" is deprecated. Refer to the provider documentation for details.
│
│ (and 2 more similar warnings elsewhere)
╵
- Not using workspaces.
- Cleared local cache.
Versions
- Module version: 4.11.0
- Terraform version: 1.12.2
- Provider version(s): hashicorp/aws 6.0.0
Expected behavior
No warnings when running when running terraform validate
Actual behavior
The warning as pasted above.