Skip to content

Commit

Permalink
fix: add count for inline policy and mark policies as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
LiamMacP committed Mar 14, 2024
1 parent b393d5f commit 73c714b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions modules/aws/permission_sets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ module "permission_sets" {
name = <VALUE>
description = <VALUE>
identity_store_arn = <VALUE>
inline_policies = ARRAY(<INLINE_POLICY>)
managed_policies = ARRAY(<MANAGED_POLICY_NAME>)
inline_policies = OPTIONAL(ARRAY(<INLINE_POLICY>))
managed_policies = OPTIONAL(ARRAY(<MANAGED_POLICY_NAME>))
}
```

Expand Down
6 changes: 3 additions & 3 deletions modules/aws/permission_sets/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ variable "identity_store_arn" {

variable "inline_policies" {
description = "The inline policy to attach to the permission set."
type = list(object({
type = optional(list(object({
sid = optional(string)
actions = list(string)
resources = list(string)
}))
})))
default = []
}

variable "managed_policies" {
description = "The inline policy to attach to the permission set."
type = list(string)
type = optional(list(string))
default = []
}

0 comments on commit 73c714b

Please sign in to comment.