Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KashifSaadat committed May 17, 2024
1 parent d5ee5c9 commit 6d201ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/role/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ No modules.
| <a name="input_name"></a> [name](#input\_name) | Name of the role to create | `string` | n/a | yes |
| <a name="input_permission_boundary"></a> [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 |
| <a name="input_permission_boundary_arn"></a> [permission\_boundary\_arn](#input\_permission\_boundary\_arn) | The full ARN of the permission boundary to attach to the role | `string` | `null` | no |
| <a name="input_protected_by"></a> [protected\_by](#input\_protected\_by) | The branch, environment and/or tag to protect the role against | <pre>map(object({<br> branch = optional(string)<br> environment = optional(string)<br> tag = optional(string)<br> }))</pre> | <pre>{<br> "branch": "main",<br> "environment": "production",<br> "tag": "*"<br>}</pre> | no |
| <a name="input_protected_by"></a> [protected\_by](#input\_protected\_by) | The branch, environment and/or tag to protect the role against | <pre>object({<br> branch = optional(string)<br> environment = optional(string)<br> tag = optional(string)<br> })</pre> | <pre>{<br> "branch": "main",<br> "environment": "production",<br> "tag": "*"<br>}</pre> | no |
| <a name="input_read_only_inline_policies"></a> [read\_only\_inline\_policies](#input\_read\_only\_inline\_policies) | Inline policies map with policy name as key and json as value. | `map(string)` | `{}` | no |
| <a name="input_read_only_max_session_duration"></a> [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 |
| <a name="input_read_only_policy_arns"></a> [read\_only\_policy\_arns](#input\_read\_only\_policy\_arns) | List of IAM policy ARNs to attach to the read-only role | `list(string)` | `[]` | no |
Expand Down
4 changes: 2 additions & 2 deletions modules/role/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6d201ac

Please sign in to comment.