Skip to content

Commit ddb2965

Browse files
committed
Set user_data to null by default
Empty string is no longer allowed
1 parent 08553b9 commit ddb2965

File tree

3 files changed

+4
-4
lines changed
  • code/terraform
    • 06-production-grade-infrastructure/small-modules/modules/cluster/asg-rolling-deploy
    • 07-testing-terraform-code/modules/cluster/asg-rolling-deploy
    • 08-terraform-team/modules/cluster/asg-rolling-deploy

3 files changed

+4
-4
lines changed

code/terraform/06-production-grade-infrastructure/small-modules/modules/cluster/asg-rolling-deploy/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ variable "enable_autoscaling" {
4444
# ---------------------------------------------------------------------------------------------------------------------
4545

4646
variable "target_group_arns" {
47-
description = "The ARNs of load balancer target groups in which to register Instances"
47+
description = "The ARNs of ELB target groups in which to register Instances"
4848
type = list(string)
4949
default = []
5050
}
@@ -58,7 +58,7 @@ variable "health_check_type" {
5858
variable "user_data" {
5959
description = "The User Data script to run in each Instance at boot"
6060
type = string
61-
default = ""
61+
default = null
6262
}
6363

6464
variable "custom_tags" {

code/terraform/07-testing-terraform-code/modules/cluster/asg-rolling-deploy/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ variable "health_check_type" {
5858
variable "user_data" {
5959
description = "The User Data script to run in each Instance at boot"
6060
type = string
61-
default = ""
61+
default = null
6262
}
6363

6464
variable "custom_tags" {

code/terraform/08-terraform-team/modules/cluster/asg-rolling-deploy/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ variable "health_check_type" {
5858
variable "user_data" {
5959
description = "The User Data script to run in each Instance at boot"
6060
type = string
61-
default = ""
61+
default = null
6262
}
6363

6464
variable "custom_tags" {

0 commit comments

Comments
 (0)