Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSECPC-6916 | Terraform | Added length limit to prefix and asg-name #461

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading