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 1
1
repos :
2
2
- repo : https://github.com/antonbabenko/pre-commit-terraform
3
- rev : v1.95 .0
3
+ rev : v1.96 .0
4
4
hooks :
5
5
- id : terraform_fmt
6
6
- id : terraform_docs
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ data "aws_caller_identity" "current" {}
4
4
5
5
locals {
6
6
account_id = data. aws_caller_identity . current . account_id
7
+ dns_suffix = data. aws_partition . current . dns_suffix
7
8
partition = data. aws_partition . current . partition
8
9
region = data. aws_region . current . name
9
10
}
@@ -286,7 +287,7 @@ data "aws_iam_policy_document" "node_assume_role" {
286
287
287
288
principals {
288
289
type = " Service"
289
- identifiers = [" ec2.amazonaws.com " ]
290
+ identifiers = [" ec2.${ local . dns_suffix } " ]
290
291
}
291
292
}
292
293
}
You can’t perform that action at this time.
0 commit comments