github.com/swisspost/terratest@v0.0.0-20230214120104-7ec6de2e1ae0/examples/terraform-aws-ec2-windows-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 "region" { 15 description = "The AWS region in which all resources will be created" 16 type = string 17 default = "us-west-2" 18 } 19 20 variable "ami" { 21 description = "The ID of the AMI to run on the Windows instance." 22 type = string 23 } 24 25 # --------------------------------------------------------------------------------------------------------------------- 26 # OPTIONAL PARAMETERS 27 # These parameters have reasonable defaults. 28 # --------------------------------------------------------------------------------------------------------------------- 29 30 variable "name" { 31 description = "The name of the Windows instance" 32 type = string 33 default = "windows_test_instance" 34 } 35 36 variable "instance_type" { 37 description = "The instance type to deploy." 38 type = string 39 default = "t3.small" 40 } 41 42 variable "root_volume_size" { 43 description = "The size in GiB of the root volume. Must match the root volume size of the target AMI." 44 type = number 45 default = 30 46 } 47