github.com/terraform-modules-krish/terratest@v0.29.0/examples/terraform-ssh-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 "key_pair_name" {
    15    description = "The EC2 Key Pair to associate with the EC2 Instance for SSH access."
    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 "ssh_port" {
    37    description = "The port the EC2 Instance should listen on for SSH requests."
    38    type        = number
    39    default     = 22
    40  }
    41