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 22023f8 commit 34fb908Copy full SHA for 34fb908
data.tf
@@ -357,6 +357,8 @@ data "aws_iam_policy_document" "aqua_cspm_custom_trust" {
357
}
358
359
data "aws_iam_policy_document" "aquahub_sechub_trust" {
360
+ count = local.enable_security_hub_integration ? 1 : 0
361
+
362
statement {
363
effect = "Allow"
364
iam.tf
@@ -74,7 +74,7 @@ resource "aws_iam_role" "aqua_cspm_sechub" {
74
path = "/"
75
max_session_duration = "3600"
76
77
- assume_role_policy = data.aws_iam_policy_document.aquahub_sechub_trust.json
+ assume_role_policy = data.aws_iam_policy_document.aquahub_sechub_trust[0].json
78
79
80
resource "aws_iam_role_policy_attachment" "aqua_cspm_sechub" {
0 commit comments