Skip to content

Commit ceccbe3

Browse files
authored
fix: name attribute is deprecated (#328)
1 parent 0b10f64 commit ceccbe3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ locals {
33
# https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/enable-access-logs.html#attach-bucket-policy
44
# contains a bucket policy and information about when to use that policy.
55
is_region_after_082022 = contains(
6-
["ap-south-2", "ap-southeast-4", "ap-southeast-5", "ap-southeast-7", "ca-west-1", "eu-south-2", "eu-central-2", "il-central-1", "me-central-1"], data.aws_region.current.name)
6+
["ap-south-2", "ap-southeast-4", "ap-southeast-5", "ap-southeast-7", "ca-west-1", "eu-south-2", "eu-central-2", "il-central-1", "me-central-1"], data.aws_region.current.region)
77
}
88

99
# Get the account id of the AWS ALB and ELB service account in a given region for the
@@ -60,7 +60,7 @@ locals {
6060
cloudwatch_effect = var.default_allow || var.allow_cloudwatch ? "Allow" : "Deny"
6161

6262
# region specific logs service principal
63-
cloudwatch_service = "logs.${data.aws_region.current.name}.amazonaws.com"
63+
cloudwatch_service = "logs.${data.aws_region.current.region}.amazonaws.com"
6464

6565
cloudwatch_resource = "${local.bucket_arn}/${var.cloudwatch_logs_prefix}/*"
6666

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.75.0"
7+
version = ">= 6.0.0"
88
}
99
}
1010
}

0 commit comments

Comments
 (0)