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