github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/examples/terraform-redeploy-example/variables.tf (about) 1 # --------------------------------------------------------------------------------------------------------------------- 2 # ENVIRONMENT VARIABLES 3 # Define these secrets as environment variables 4 # --------------------------------------------------------------------------------------------------------------------- 5 6 # AWS_ACCESS_KEY_ID 7 # AWS_SECRET_ACCESS_KEY 8 9 # --------------------------------------------------------------------------------------------------------------------- 10 # REQUIRED PARAMETERS 11 # You must provide a value for each of these parameters. 12 # --------------------------------------------------------------------------------------------------------------------- 13 14 # --------------------------------------------------------------------------------------------------------------------- 15 # OPTIONAL PARAMETERS 16 # These parameters have reasonable defaults. 17 # --------------------------------------------------------------------------------------------------------------------- 18 19 variable "aws_region" { 20 description = "The AWS region to deploy into (e.g. us-east-1)." 21 type = string 22 default = "us-east-1" 23 } 24 25 variable "instance_name" { 26 description = "The names for the ASG and other resources in this module" 27 type = string 28 default = "asg-alb-example" 29 } 30 31 variable "instance_port" { 32 description = "The port each EC2 Instance should listen on for HTTP requests." 33 type = number 34 default = 8080 35 } 36 37 variable "ssh_port" { 38 description = "The port each EC2 Instance should listen on for SSH requests." 39 type = number 40 default = 22 41 } 42 43 variable "instance_text" { 44 description = "The text each EC2 Instance should return when it gets an HTTP request." 45 type = string 46 default = "Hello, World!" 47 } 48 49 variable "alb_port" { 50 description = "The port the ALB should listen on for HTTP requests" 51 type = number 52 default = 80 53 } 54 55 variable "key_pair_name" { 56 description = "The EC2 Key Pair to associate with the EC2 Instance for SSH access." 57 type = string 58 default = "" 59 } 60 61 variable "instance_type" { 62 description = "The EC2 instance type to run." 63 type = string 64 default = "t2.micro" 65 }