Error: Unsupported attribute
│
│ on .terraform/modules/cur_source/terraform-modules/cur-setup-source/main.tf line 127, in data "aws_iam_policy_document" "bucket_policy":
│ 127: values = ["arn:${data.aws_partition.this.partition}:cur:${data.aws_region.this.region}:${data.aws_caller_identity.this.account_id}:definition/*"]
│
│ This object has no argument, nested block, or exported attribute named
│ "region".
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available:
Description of changes: As per the AWS Provider documentation at https://registry.terraform.io/providers/hashicorp/aws/5.55.0/docs/data-sources/region#attribute-reference, there is no attribute called
region
. Using the module as is results with errors like this:By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.