Skip to content

Think-Cube/terraform-azure-virtual-network-with-bastion-host

Repository files navigation

Requirements

Name Version
terraform >= 1.6.4
azurerm 3.106.1

Providers

Name Version
azurerm 3.106.1

Resources

Name Type
azurerm_bastion_host.main resource
azurerm_public_ip.main resource
azurerm_subnet.main resource
azurerm_virtual_network.main resource
azurerm_client_config.current data source
azurerm_resource_group.main data source
azurerm_subnet.main data source

Inputs

Name Description Type Default Required
bastion_hostname Name of the basion host string "test" no
default_tags A mapping of tags to assign to the resource. map(any)
{
"ManagedByTerraform": "True"
}
no
environment Variable that defines the name of the environment. string "dev" no
pubip_allocation_method Defines the allocation method for this IP address. Possible values are Static or Dynamic. string "Static" no
pubip_sku The SKU of the Public IP. Accepted values are Basic and Standard. Defaults to Basic. string "Standard" no
region Region in which resources are deployed. string "weu" no
resource_group_location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. any n/a yes
resource_group_name The name of the resource group in which to create the virtual networn, subnets and bastion host. Changing this forces a new resource to be created. any n/a yes
subnet_prefix The address prefix and name to use for the subnet. map(any)
{
"bastion": {
"ip": [
"10.0.250.0/24"
],
"name": "AzureBastionSubnet"
},
"subnet_1": {
"ip": [
"10.0.1.0/24"
],
"name": "Subnet_1"
},
"subnet_2": {
"ip": [
"10.0.2.0/24"
],
"name": "Subnet_2"
}
}
no
vnet_address_space The address space that is used the virtual network. You can supply more than one address space. string "10.0.0.0/16" no
vnet_name The name of the virtual network. Changing this forces a new resource to be created. string "VirtualNetwork1" no

Outputs

Name Description
bastion_host Information about the bastion host.
subnets Information about the subnets within the virtual network.
virtual_network Information about the virtual network.