Skip to content

Commit 92a76c2

Browse files
feat: add option to attach a permissions boundary
It is now possible to attach a permissions boundary to the cloudbench role.
1 parent 220725f commit 92a76c2

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

modules/services/cloud-bench/main.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ data "aws_iam_policy_document" "trust_relationship" {
6969
resource "aws_iam_role" "cloudbench_role" {
7070
count = var.is_organizational && !var.provision_caller_account ? 0 : 1
7171

72-
name = var.name
73-
assume_role_policy = data.aws_iam_policy_document.trust_relationship.json
74-
tags = var.tags
72+
name = var.name
73+
assume_role_policy = data.aws_iam_policy_document.trust_relationship.json
74+
tags = var.tags
75+
permissions_boundary = var.permissions_boundary_arn
7576
}
7677

7778

modules/services/cloud-bench/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,9 @@ variable "tags" {
3434
"product" = "sysdig-secure-for-cloud"
3535
}
3636
}
37+
38+
variable "permissions_boundary_arn" {
39+
type = string
40+
description = "ARN of a permissions boundary policy to attach to the cloudbench role"
41+
default = null
42+
}

0 commit comments

Comments
 (0)