github.com/swisspost/terratest@v0.0.0-20230214120104-7ec6de2e1ae0/examples/terraform-aws-rds-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  # Given these are credentials, security of the values should be considered.
    13  # ---------------------------------------------------------------------------------------------------------------------
    14  variable "region" {
    15    description = "The AWS region to deploy to"
    16    type        = string
    17  }
    18  
    19  variable "username" {
    20    description = "Master username of the DB"
    21    type        = string
    22  }
    23  
    24  variable "password" {
    25    description = "Master password of the DB"
    26    type        = string
    27  }
    28  
    29  variable "database_name" {
    30    description = "Name of the database to be created"
    31    type        = string
    32  }
    33  
    34  # ---------------------------------------------------------------------------------------------------------------------
    35  # OPTIONAL PARAMETERS
    36  # These parameters have reasonable defaults.
    37  # ---------------------------------------------------------------------------------------------------------------------
    38  
    39  variable "name" {
    40    description = "Name of the database"
    41    type        = string
    42    default     = "terratest-example"
    43  }
    44  
    45  variable "engine_name" {
    46    description = "Name of the database engine"
    47    type        = string
    48    default     = "mysql"
    49  }
    50  
    51  variable "family" {
    52    description = "Family of the database"
    53    type        = string
    54    default     = "mysql5.7"
    55  }
    56  
    57  variable "port" {
    58    description = "Port which the database should run on"
    59    type        = number
    60    default     = 3306
    61  }
    62  
    63  variable "major_engine_version" {
    64    description = "MAJOR.MINOR version of the DB engine"
    65    type        = string
    66    default     = "5.7"
    67  }
    68  
    69  variable "engine_version" {
    70    description = "Version of the database to be launched"
    71    default     = "5.7.21"
    72    type        = string
    73  }
    74  
    75  variable "allocated_storage" {
    76    description = "Disk space to be allocated to the DB instance"
    77    type        = number
    78    default     = 5
    79  }
    80  
    81  variable "license_model" {
    82    description = "License model of the DB instance"
    83    type        = string
    84    default     = "general-public-license"
    85  }
    86  
    87  variable "instance_class" {
    88    description = "Instance class to be used to run the database"
    89    type        = string
    90    default     = "db.t2.micro"
    91  }
    92