Skip to content

Commit e4649bd

Browse files
committed
refactor(modules/asg): add default values for optional variables
1 parent 56e2f46 commit e4649bd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

modules/asg/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ No modules.
4747
| <a name="input_launch_template_id"></a> [launch\_template\_id](#input\_launch\_template\_id) | Identifier of the Launch Template | `string` | `null` | no |
4848
| <a name="input_max_size"></a> [max\_size](#input\_max\_size) | Maximum size of the Auto Scaling Group | `number` | n/a | yes |
4949
| <a name="input_min_size"></a> [min\_size](#input\_min\_size) | Minimum size of the Auto Scaling Group | `number` | n/a | yes |
50-
| <a name="input_name"></a> [name](#input\_name) | (Optional) Name of the Auto Scaling Group. | `string` | n/a | yes |
50+
| <a name="input_name"></a> [name](#input\_name) | (Optional) Name of the Auto Scaling Group. | `string` | `null` | no |
5151
| <a name="input_tags"></a> [tags](#input\_tags) | Resources Tags for Autoscaling group | `map(string)` | `{}` | no |
52-
| <a name="input_vpc_zone_identifier"></a> [vpc\_zone\_identifier](#input\_vpc\_zone\_identifier) | (Optional) List of subnet IDs to launch resources in. | `list(string)` | n/a | yes |
52+
| <a name="input_vpc_zone_identifier"></a> [vpc\_zone\_identifier](#input\_vpc\_zone\_identifier) | (Optional) List of subnet IDs to launch resources in. | `list(string)` | `[]` | no |
5353

5454
## Outputs
5555

modules/asg/variables.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ variable "cluster_name" {
66
variable "name" {
77
description = "(Optional) Name of the Auto Scaling Group."
88
type = string
9+
default = null
910
}
1011

1112
variable "vpc_zone_identifier" {
1213
description = "(Optional) List of subnet IDs to launch resources in."
1314
type = list(string)
15+
default = []
1416
}
1517

1618
variable "desired_capacity" {

0 commit comments

Comments
 (0)