We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 382d35b commit 59346deCopy full SHA for 59346de
modules/setup-iam-permissions/main.tf
@@ -14,7 +14,7 @@ resource "aws_iam_policy" "boundary" {
14
path = "/${var.namespaces.boundary_namespace}/"
15
16
policy = templatefile("${path.module}/policies/boundary.json", {
17
- role_namespace = "terraform"
+ role_namespace = var.namespaces.role_namespace
18
account_id = data.aws_caller_identity.current.account_id
19
})
20
}
modules/setup-iam-permissions/policies/assume-role-for-account.json
@@ -5,7 +5,12 @@
5
"Action": "sts:AssumeRole",
6
"Principal": { "AWS": "arn:aws:iam::${account_id}:root" },
7
"Effect": "Allow",
8
- "Sid": ""
+ "Sid": "",
9
+ "Condition": {
10
+ "Bool": {
11
+ "aws:MultiFactorAuthPresent": "true"
12
+ }
13
]
0 commit comments