File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11repos :
22 - repo : https://github.com/antonbabenko/pre-commit-terraform
3- rev : v1.95 .0
3+ rev : v1.96 .0
44 hooks :
55 - id : terraform_fmt
66 - id : terraform_docs
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ data "aws_caller_identity" "current" {}
44
55locals {
66 account_id = data. aws_caller_identity . current . account_id
7+ dns_suffix = data. aws_partition . current . dns_suffix
78 partition = data. aws_partition . current . partition
89 region = data. aws_region . current . name
910}
@@ -286,7 +287,7 @@ data "aws_iam_policy_document" "node_assume_role" {
286287
287288 principals {
288289 type = " Service"
289- identifiers = [" ec2.amazonaws.com " ]
290+ identifiers = [" ec2.${ local . dns_suffix } " ]
290291 }
291292 }
292293}
You can’t perform that action at this time.
0 commit comments