github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/examples/terraform-packer-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  variable "ami_id" {
    15    description = "The ID of the AMI to run on each EC2 Instance. Should be an AMI built from the Packer template in examples/packer-docker-example/build.json."
    16    type        = string
    17  }
    18  
    19  # ---------------------------------------------------------------------------------------------------------------------
    20  # OPTIONAL PARAMETERS
    21  # These parameters have reasonable defaults.
    22  # ---------------------------------------------------------------------------------------------------------------------
    23  
    24  variable "aws_region" {
    25    description = "The AWS region to deploy into"
    26    type        = string
    27    default     = "us-east-1"
    28  }
    29  
    30  variable "instance_name" {
    31    description = "The Name tag to set for the EC2 Instance."
    32    type        = string
    33    default     = "terratest-example"
    34  }
    35  
    36  variable "instance_port" {
    37    description = "The port the EC2 Instance should listen on for HTTP requests."
    38    type        = number
    39    default     = 8080
    40  }
    41  
    42  variable "instance_text" {
    43    description = "The text the EC2 Instance should return when it gets an HTTP request."
    44    type        = string
    45    default     = "Hello, World!"
    46  }
    47  
    48  variable "instance_type" {
    49    description = "The EC2 instance type to run."
    50    type        = string
    51    default     = "t2.micro"
    52  }