Skip to content

Commit

Permalink
feat: Remove timeout configuration (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrTitov authored Sep 18, 2023
1 parent 7dbc01e commit 563dc0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ No modules.
| <a name="input_name"></a> [name](#input\_name) | Specifies a name for the Address Group | `string` | n/a | yes |
| <a name="input_name_postfix"></a> [name\_postfix](#input\_name\_postfix) | Specifies a postfix for the Address Group | `string` | `null` | no |
| <a name="input_region"></a> [region](#input\_region) | Specifies the region in which to create the resource, if omitted, the provider-level region will be used | `string` | `null` | no |
| <a name="input_timeouts"></a> [timeouts](#input\_timeouts) | Address group timeouts configuration in minutes | <pre>object({<br> create = optional(number, 5)<br> update = optional(number, 5)<br> delete = optional(number, 5)<br> })</pre> | `{}` | no |

## Outputs

Expand Down
13 changes: 3 additions & 10 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,9 @@ locals {
}

resource "huaweicloud_vpc_address_group" "main" {
name = local.name
region = var.region
ip_version = var.ip_version

name = local.name
region = var.region
ip_version = var.ip_version
addresses = var.addresses
description = var.description

timeouts {
create = var.timeouts.create
update = var.timeouts.update
delete = var.timeouts.delete
}
}
10 changes: 0 additions & 10 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,3 @@ variable "description" {
type = string
default = null
}

variable "timeouts" {
description = "Address group timeouts configuration in minutes"
type = object({
create = optional(number, 5)
update = optional(number, 5)
delete = optional(number, 5)
})
default = {}
}

0 comments on commit 563dc0a

Please sign in to comment.