github.com/terraform-modules-krish/terratest@v0.29.0/examples/terraform-basic-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 "example" { 20 description = "Example variable" 21 type = string 22 default = "example" 23 } 24 25 variable "example2" { 26 description = "Example variable 2" 27 type = string 28 default = "" 29 } 30 31 variable "example_list" { 32 description = "An example variable that is a list." 33 type = list(string) 34 default = [] 35 } 36 37 variable "example_map" { 38 description = "An example variable that is a map." 39 type = map(string) 40 default = {} 41 } 42 43 variable "example_any" { 44 description = "An example variable that is can be anything" 45 type = any 46 default = null 47 }