File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change
1
+ data "aws_caller_identity" "current" {}
2
+
3
+ data "aws_iam_policy_document" "support_assume_policy" {
4
+ statement {
5
+ sid = " supportpolicy"
6
+ actions = [" sts:AssumeRole" ]
7
+ principals {
8
+ type = " AWS"
9
+ identifiers = [data . aws_caller_identity . current . id ]
10
+ }
11
+ }
12
+ }
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ resource "aws_iam_account_password_policy" "default" {
20
20
max_password_age = var. max_password_age
21
21
}
22
22
23
+ # Moved to data.tf file
23
24
# --------------------------------------------------------------------------------------------------
24
25
# Support Role - https://us-east-1.console.aws.amazon.com/securityhub/home?region=us-east-1#/standards/cis-aws-foundations-benchmark-1.4.0/1.17
25
26
# https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-cis-controls.html#cis-1.20-remediation
You can’t perform that action at this time.
0 commit comments