Skip to content

Commit b82f939

Browse files
chore: change deprecated aws_region "name" attribute (#1335)
## Description Update the name attribute by region in the aws_region resource, for compatibility with aws provider 6.0+ Co-authored-by: Abdelmajid MOUSSAOUI <[email protected]>
1 parent 68a63bd commit b82f939

File tree

1 file changed

+1
-1
lines changed
  • modules/terminate-agent-hook

1 file changed

+1
-1
lines changed

modules/terminate-agent-hook/iam.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ data "aws_iam_policy_document" "lambda" {
8484
actions = [
8585
"ec2:TerminateInstances"
8686
]
87-
resources = ["arn:${data.aws_partition.current.partition}:ec2:${data.aws_region.this.name}:${data.aws_caller_identity.this.account_id}:instance/*"]
87+
resources = ["arn:${data.aws_partition.current.partition}:ec2:${data.aws_region.this.region}:${data.aws_caller_identity.this.account_id}:instance/*"]
8888
condition {
8989
test = "StringLike"
9090
variable = "ec2:ResourceTag/gitlab-runner-parent-id"

0 commit comments

Comments
 (0)