Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/sfn-state-machine/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ module "role" {
var.iam_role.inline_policies,
)

permissions_boundary = var.iam_role.permissions_boundary

resource_group_enabled = false
module_tags_enabled = false

Expand Down
6 changes: 4 additions & 2 deletions modules/sfn-state-machine/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ variable "iam_role" {
(Optional) `enabled` - Whether to create a default IAM role managed by this module.
(Optional) `policies` - A list of IAM policies ARNs to attach to IAM role.
(Optional) `inline_policies` - Map of inline IAM policies to attach to IAM role. (`name` => `policy`).
(Optional) `permissions_boundary` - The ARN of the IAM policy to use as permissions boundary for the default IAM role.
EOF
type = object({
enabled = optional(bool, true)
Expand All @@ -88,8 +89,9 @@ variable "iam_role" {
condition = string
values = list(string)
})), [])
policies = optional(list(string), [])
inline_policies = optional(map(string), {})
policies = optional(list(string), [])
inline_policies = optional(map(string), {})
permissions_boundary = optional(string)
Comment on lines +92 to +94

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The README.md file, which contains the module's documentation, has not been updated to reflect the addition of the permissions_boundary attribute to the iam_role variable. Please regenerate the documentation to ensure it stays in sync with the code, as this is crucial for module usability.

})
default = {}
nullable = false
Expand Down