Skip to content

Commit 88a88a6

Browse files
committed
feat(config-managed-rule): add timeouts
1 parent 9a6b928 commit 88a88a6

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

modules/config-managed-rule/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ This module creates following resources.
5757
| <a name="input_schedule_frequency"></a> [schedule\_frequency](#input\_schedule\_frequency) | (Optional) The frequency with which AWS Config runs evaluations for a rule. Use default value if not provided. Valid values are `1h`, `3h`, `6h`, `12h`, or `24h`. | `string` | `null` | no |
5858
| <a name="input_scope"></a> [scope](#input\_scope) | (Optional) Choose when evaluations will occur. Valid values are `ALL_CHANGES`, `RESOURCES`, or `TAGS`. | `string` | `"RESOURCES"` | no |
5959
| <a name="input_tags"></a> [tags](#input\_tags) | (Optional) A map of tags to add to all resources. | `map(string)` | `{}` | no |
60+
| <a name="input_timeouts"></a> [timeouts](#input\_timeouts) | (Optional) How long to wait for the rules to be created/updated/deleted. | <pre>object({<br/> create = optional(string, "30m")<br/> update = optional(string, "30m")<br/> delete = optional(string, "30m")<br/> })</pre> | `{}` | no |
6061

6162
## Outputs
6263

modules/config-managed-rule/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,10 @@ resource "aws_config_organization_managed_rule" "this" {
150150
: null)
151151

152152
excluded_accounts = var.excluded_accounts
153+
154+
timeouts {
155+
create = var.timeouts.create
156+
update = var.timeouts.update
157+
delete = var.timeouts.delete
158+
}
153159
}

modules/config-managed-rule/variables.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,17 @@ variable "excluded_accounts" {
109109
nullable = false
110110
}
111111

112+
variable "timeouts" {
113+
description = "(Optional) How long to wait for the rules to be created/updated/deleted."
114+
type = object({
115+
create = optional(string, "30m")
116+
update = optional(string, "30m")
117+
delete = optional(string, "30m")
118+
})
119+
default = {}
120+
nullable = false
121+
}
122+
112123
variable "tags" {
113124
description = "(Optional) A map of tags to add to all resources."
114125
type = map(string)

0 commit comments

Comments
 (0)