Add terraform scripts to build nginx image (#4484)
This commit is contained in:
parent
ce3e3d51c3
commit
9eedc1be56
9 changed files with 448 additions and 3 deletions
43
build/images/nginx/variables.tf
Normal file
43
build/images/nginx/variables.tf
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
variable "access_key" {
|
||||
}
|
||||
|
||||
variable "secret_key" {
|
||||
}
|
||||
|
||||
variable "region" {
|
||||
default = "us-west-2"
|
||||
}
|
||||
|
||||
variable "cidr_vpc" {
|
||||
description = "CIDR block for the VPC"
|
||||
default = "10.4.0.0/16"
|
||||
}
|
||||
|
||||
variable "cidr_subnet" {
|
||||
description = "CIDR block for the subnet"
|
||||
default = "10.4.0.0/24"
|
||||
}
|
||||
|
||||
variable "availability_zone" {
|
||||
description = "availability zone to create subnet"
|
||||
default = "us-west-2a"
|
||||
}
|
||||
|
||||
variable "ssh_key_path" {
|
||||
description = "Path to the SSH key"
|
||||
default = "~/.ssh/id_rsa"
|
||||
}
|
||||
|
||||
variable "ssh_public_key_path" {
|
||||
description = "Path to the public SSH key"
|
||||
default = "~/.ssh/id_rsa.pub"
|
||||
}
|
||||
|
||||
variable "instance_type" {
|
||||
description = "EC2 instance"
|
||||
default = "m5.16xlarge"
|
||||
}
|
||||
|
||||
variable "project_tag" {
|
||||
default = "kubernetes/ingress-nginx"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue