From 6d201ac7b542946da39fcd210aba11fa6a5df310 Mon Sep 17 00:00:00 2001 From: Kashif Saadat Date: Fri, 17 May 2024 12:56:17 +0100 Subject: [PATCH] fix --- modules/role/README.md | 2 +- modules/role/variables.tf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/role/README.md b/modules/role/README.md index 0cfb31d..78f4b85 100644 --- a/modules/role/README.md +++ b/modules/role/README.md @@ -137,7 +137,7 @@ No modules. | [name](#input\_name) | Name of the role to create | `string` | n/a | yes | | [permission\_boundary](#input\_permission\_boundary) | The name of the policy that is used to set the permissions boundary for the IAM role | `string` | `null` | no | | [permission\_boundary\_arn](#input\_permission\_boundary\_arn) | The full ARN of the permission boundary to attach to the role | `string` | `null` | no | -| [protected\_by](#input\_protected\_by) | The branch, environment and/or tag to protect the role against |
map(object({
branch = optional(string)
environment = optional(string)
tag = optional(string)
}))
|
{
"branch": "main",
"environment": "production",
"tag": "*"
}
| no | +| [protected\_by](#input\_protected\_by) | The branch, environment and/or tag to protect the role against |
object({
branch = optional(string)
environment = optional(string)
tag = optional(string)
})
|
{
"branch": "main",
"environment": "production",
"tag": "*"
}
| no | | [read\_only\_inline\_policies](#input\_read\_only\_inline\_policies) | Inline policies map with policy name as key and json as value. | `map(string)` | `{}` | no | | [read\_only\_max\_session\_duration](#input\_read\_only\_max\_session\_duration) | The maximum session duration (in seconds) that you want to set for the specified role | `number` | `null` | no | | [read\_only\_policy\_arns](#input\_read\_only\_policy\_arns) | List of IAM policy ARNs to attach to the read-only role | `list(string)` | `[]` | no | diff --git a/modules/role/variables.tf b/modules/role/variables.tf index 6446239..e718a8b 100644 --- a/modules/role/variables.tf +++ b/modules/role/variables.tf @@ -58,11 +58,11 @@ variable "shared_repositories" { } variable "protected_by" { - type = map(object({ + type = object({ branch = optional(string) environment = optional(string) tag = optional(string) - })) + }) default = { branch = "main"