Skip to content

Commit 3139e34

Browse files
authored
feat(sfn-state-machine): add permissions_boundary support for IAM role (#34)
1 parent a9d18c8 commit 3139e34

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

modules/sfn-state-machine/iam.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ module "role" {
6060
var.iam_role.inline_policies,
6161
)
6262

63+
permissions_boundary = var.iam_role.permissions_boundary
64+
6365
resource_group_enabled = false
6466
module_tags_enabled = false
6567

modules/sfn-state-machine/variables.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ variable "iam_role" {
8080
(Optional) `enabled` - Whether to create a default IAM role managed by this module.
8181
(Optional) `policies` - A list of IAM policies ARNs to attach to IAM role.
8282
(Optional) `inline_policies` - Map of inline IAM policies to attach to IAM role. (`name` => `policy`).
83+
(Optional) `permissions_boundary` - The ARN of the IAM policy to use as permissions boundary for the default IAM role.
8384
EOF
8485
type = object({
8586
enabled = optional(bool, true)
@@ -88,8 +89,9 @@ variable "iam_role" {
8889
condition = string
8990
values = list(string)
9091
})), [])
91-
policies = optional(list(string), [])
92-
inline_policies = optional(map(string), {})
92+
policies = optional(list(string), [])
93+
inline_policies = optional(map(string), {})
94+
permissions_boundary = optional(string)
9395
})
9496
default = {}
9597
nullable = false

0 commit comments

Comments
 (0)