Skip to content

Commit

Permalink
VSECPC-6916 | Terraform | Added length limit to prefix and asg-name
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-guybarak authored and chkp-eddiek committed Dec 22, 2024
1 parent ec11c39 commit 668d3a2
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 5 deletions.
10 changes: 9 additions & 1 deletion terraform/aws/autoscale-gwlb/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,19 @@ variable "prefix" {
type = string
description = "(Optional) Instances name prefix"
default = ""
validation {
condition = length(var.prefix) <= 40
error_message = "Prefix can not exceed 40 characters."
}
}
variable "asg_name" {
type = string
description = "Autoscaling Group name"
default = "Check-Point-ASG-tf"
default = "Check-Point-Security-Gateway-AutoScaling-Group-tf"
validation {
condition = length(var.asg_name) <= 100
error_message = "Autoscaling Group name can not exceed 100 characters."
}
}

// --- VPC Network Configuration ---
Expand Down
10 changes: 9 additions & 1 deletion terraform/aws/autoscale/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,19 @@ variable "prefix" {
type = string
description = "(Optional) Instances name prefix"
default = ""
validation {
condition = length(var.prefix) <= 40
error_message = "Prefix can not exceed 40 characters."
}
}
variable "asg_name" {
type = string
description = "Autoscaling Group name"
default = "Check-Point-ASG-tf"
default = "Check-Point-Security-Gateway-AutoScaling-Group-tf"
validation {
condition = length(var.asg_name) <= 100
error_message = "Autoscaling Group name can not exceed 100 characters."
}
}

// --- VPC Network Configuration ---
Expand Down
10 changes: 9 additions & 1 deletion terraform/aws/modules/custom-autoscale/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@ variable "prefix" {
type = string
description = "(Optional) Instances name prefix"
default = ""
validation {
condition = length(var.prefix) <= 40
error_message = "Prefix can not exceed 40 characters."
}
}
variable "asg_name" {
type = string
description = "Autoscaling Group name"
default = "Check-Point-ASG-tf"
default = "Check-Point-Security-Gateway-AutoScaling-Group-tf"
validation {
condition = length(var.asg_name) <= 100
error_message = "Autoscaling Group name can not exceed 100 characters."
}
}

// --- VPC Network Configuration ---
Expand Down
10 changes: 9 additions & 1 deletion terraform/aws/qs-autoscale-master/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,19 @@ variable "prefix" {
type = string
description = "(Optional) Instances name prefix"
default = ""
validation {
condition = length(var.prefix) <= 40
error_message = "Prefix can not exceed 40 characters."
}
}
variable "asg_name" {
type = string
description = "Autoscaling Group name"
default = "Check-Point-ASG-tf"
default = "Check-Point-Security-Gateway-AutoScaling-Group-tf"
validation {
condition = length(var.asg_name) <= 100
error_message = "Autoscaling Group name can not exceed 100 characters."
}
}
// --- Network Configuration ---
variable "vpc_cidr" {
Expand Down
10 changes: 9 additions & 1 deletion terraform/aws/qs-autoscale/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,19 @@ variable "prefix" {
type = string
description = "(Optional) Instances name prefix"
default = ""
validation {
condition = length(var.prefix) <= 40
error_message = "Prefix can not exceed 40 characters."
}
}
variable "asg_name" {
type = string
description = "Autoscaling Group name"
default = "Check-Point-ASG-tf"
default = "Check-Point-Security-Gateway-AutoScaling-Group-tf"
validation {
condition = length(var.asg_name) <= 100
error_message = "Autoscaling Group name can not exceed 100 characters."
}
}
// --- General Settings ---
variable "vpc_id" {
Expand Down

0 comments on commit 668d3a2

Please sign in to comment.