Skip to content

Commit cb116df

Browse files
raffraffraffpaul-rafferty-scopelybryantbiggs
authored
fix: Correct timeouts variable type definition from optional(bool) to optional(string) (#150)
Co-authored-by: Paul Rafferty <paul.rafferty@scopely.com> Co-authored-by: Bryant Biggs <bryantbiggs@gmail.com>
1 parent 51cabaf commit cb116df

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ No modules.
110110
| <a name="input_tgw_route_table_tags"></a> [tgw\_route\_table\_tags](#input\_tgw\_route\_table\_tags) | Additional tags for the TGW route table | `map(string)` | `{}` | no |
111111
| <a name="input_tgw_tags"></a> [tgw\_tags](#input\_tgw\_tags) | Additional tags for the TGW | `map(string)` | `{}` | no |
112112
| <a name="input_tgw_vpc_attachment_tags"></a> [tgw\_vpc\_attachment\_tags](#input\_tgw\_vpc\_attachment\_tags) | Additional tags for VPC attachments | `map(string)` | `{}` | no |
113-
| <a name="input_timeouts"></a> [timeouts](#input\_timeouts) | Create, update, and delete timeout configurations for the transit gateway | <pre>object({<br/> create = optional(bool)<br/> update = optional(bool)<br/> delete = optional(bool)<br/> })</pre> | `null` | no |
113+
| <a name="input_timeouts"></a> [timeouts](#input\_timeouts) | Create, update, and delete timeout configurations for the transit gateway | <pre>object({<br/> create = optional(string)<br/> update = optional(string)<br/> delete = optional(string)<br/> })</pre> | `null` | no |
114114
| <a name="input_transit_gateway_cidr_blocks"></a> [transit\_gateway\_cidr\_blocks](#input\_transit\_gateway\_cidr\_blocks) | One or more IPv4 or IPv6 CIDR blocks for the transit gateway. Must be a size /24 CIDR block or larger for IPv4, or a size /64 CIDR block or larger for IPv6 | `list(string)` | `[]` | no |
115115
| <a name="input_transit_gateway_route_table_id"></a> [transit\_gateway\_route\_table\_id](#input\_transit\_gateway\_route\_table\_id) | Identifier of EC2 Transit Gateway Route Table to use with the Target Gateway when reusing it between multiple TGWs | `string` | `null` | no |
116116
| <a name="input_vpc_attachments"></a> [vpc\_attachments](#input\_vpc\_attachments) | Maps of maps of VPC details to attach to TGW. Type 'any' to disable type validation by Terraform. | `any` | `{}` | no |

examples/complete/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ module "tgw" {
8484
ram_allow_external_principals = true
8585
ram_principals = [307990089504]
8686

87+
timeouts = {
88+
create = "10m"
89+
update = "15m"
90+
delete = "15m"
91+
}
92+
8793
tags = local.tags
8894
}
8995

variables.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ variable "transit_gateway_cidr_blocks" {
8383
variable "timeouts" {
8484
description = "Create, update, and delete timeout configurations for the transit gateway"
8585
type = object({
86-
create = optional(bool)
87-
update = optional(bool)
88-
delete = optional(bool)
86+
create = optional(string)
87+
update = optional(string)
88+
delete = optional(string)
8989
})
9090
default = null
9191
}

0 commit comments

Comments
 (0)