Skip to content

Commit a4fd029

Browse files
committed
add depends on for cspm iam role creation
1 parent 956f586 commit a4fd029

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

iam.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ module "aqua_cspm_role" {
4141
role_name = "${local.name_prefix}-role"
4242
role_description = "Assumable Role of Aqua SaaS"
4343

44-
role_requires_mfa = false
45-
4644
custom_role_trust_policy = data.aws_iam_policy_document.aqua_cspm_custom_trust.json
4745

4846
custom_role_policy_arns = [
4947
"arn:aws:iam::aws:policy/SecurityAudit",
5048
aws_iam_policy.aqua_cspm_supplemental.arn,
5149
]
50+
51+
depends_on = [
52+
aws_lambda_invocation.external_id,
53+
]
5254
}

0 commit comments

Comments
 (0)