github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/examples/azure/terraform-azure-nsg-example/variables.tf (about)

     1  # ---------------------------------------------------------------------------------------------------------------------
     2  # ENVIRONMENT VARIABLES
     3  # Define these secrets as environment variables
     4  # ---------------------------------------------------------------------------------------------------------------------
     5  
     6  # ARM_CLIENT_ID
     7  # ARM_CLIENT_SECRET
     8  # ARM_SUBSCRIPTION_ID
     9  # ARM_TENANT_ID
    10  
    11  # ---------------------------------------------------------------------------------------------------------------------
    12  # REQUIRED PARAMETERS
    13  # You must provide a value for each of these parameters.
    14  # ---------------------------------------------------------------------------------------------------------------------
    15  
    16  # ---------------------------------------------------------------------------------------------------------------------
    17  # OPTIONAL PARAMETERS
    18  # These parameters have reasonable defaults.
    19  # ---------------------------------------------------------------------------------------------------------------------
    20  
    21  variable "postfix" {
    22    description = "Random postfix string used for each test run; set from the test file at runtime."
    23    type        = string
    24    default     = "qwefgt"
    25  }
    26  
    27  variable "resource_group_name" {
    28    description = "Name for the resource group holding resources for this example"
    29    type        = string
    30    default     = "terratest-nsg-rg"
    31  }
    32  
    33  variable "location" {
    34    description = "The Azure region in which to deploy this sample"
    35    type        = string
    36    default     = "East US"
    37  }
    38  
    39  variable "vnet_name" {
    40    description = "Name for the example virtual network"
    41    type        = string
    42    default     = "vnet01"
    43  }
    44  
    45  variable "subnet_name" {
    46    description = "Name for the example virtual network default subnet"
    47    type        = string
    48    default     = "subnet01"
    49  }
    50  
    51  variable "vm_nic_name" {
    52    description = "Name for the NIC attached to our example VM."
    53    type        = string
    54    default     = "nic01"
    55  }
    56  
    57  variable "vm_nic_ip_config_name" {
    58    description = "Name for the NIC IP configuration attached to our example VM."
    59    type        = string
    60    default     = "nic_ipconfig01"
    61  }
    62  
    63  variable "nsg_name" {
    64    description = "Name for the example NSG."
    65    type        = string
    66    default     = "nsg01"
    67  }
    68  
    69  variable "nsg_ssh_rule_name" {
    70    description = "Name for the example SSH NSG rule used in this example."
    71    type        = string
    72    default     = "nsgrule01"
    73  }
    74  
    75  variable "nsg_http_rule_name" {
    76    description = "Name for the example HTTP NSG rule used in this example."
    77    type        = string
    78    default     = "nsgrule02"
    79  }
    80  
    81  variable "vm_name" {
    82    description = "The name of the VM used in this example"
    83    type        = string
    84    default     = "vm01"
    85  }
    86  
    87  variable "vm_size" {
    88    description = "The size of the VM to deploy"
    89    type        = string
    90    default     = "Standard_B1s"
    91  }
    92  
    93  variable "hostname" {
    94    description = "The hostname of the new VM to be configured"
    95    type        = string
    96    default     = "vm01"
    97  }
    98  
    99  variable "os_disk_name" {
   100    description = "The of the OS disk to use on our example VM."
   101    type        = string
   102    default     = "osdisk01"
   103  }
   104  
   105  variable "username" {
   106    description = "The username to be provisioned into your VM"
   107    type        = string
   108    default     = "testadmin"
   109  }
   110  
   111  variable "password" {
   112    description = "The password to configure for SSH access"
   113    type        = string
   114    default     = "!@#PasswordSetInCode!@#"
   115  }