Skip to content

Commit b10f63c

Browse files
author
iru
authored
chore: pin down permissions for single-k8s example (#74)
1 parent 01afb44 commit b10f63c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed
+10-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
module "iam_user" {
2-
source = "../../modules/infrastructure/permissions/iam-user"
3-
name = var.name
4-
ssm_secure_api_token_arn = module.ssm.secure_api_token_secret_arn
5-
deploy_threat_detection = var.deploy_threat_detection
6-
deploy_image_scanning = local.deploy_image_scanning
2+
source = "../../modules/infrastructure/permissions/iam-user"
3+
name = var.name
4+
5+
deploy_threat_detection = var.deploy_threat_detection
6+
deploy_image_scanning = local.deploy_image_scanning
7+
8+
ssm_secure_api_token_arn = module.ssm.secure_api_token_secret_arn
9+
cloudtrail_s3_bucket_arn = length(module.cloudtrail) > 0 ? module.cloudtrail[0].s3_bucket_arn : "*"
10+
cloudtrail_subscribed_sqs_arn = length(module.cloud_connector_sqs) > 0 ? module.cloud_connector_sqs[0].cloudtrail_sns_subscribed_sqs_arn : "*"
11+
scanning_codebuild_project_arn = length(module.codebuild) > 0 ? module.codebuild[0].project_arn : "*"
712
}

0 commit comments

Comments
 (0)