update changes to files
This commit is contained in:
parent
00d4ef3f0c
commit
44857345c7
@ -3,7 +3,7 @@ resource "random_pet" "rg_name" {
|
||||
}
|
||||
|
||||
resource "random_password" "password" {
|
||||
count = 2
|
||||
count = 2
|
||||
length = 20
|
||||
min_lower = 1
|
||||
min_upper = 1
|
||||
@ -34,6 +34,15 @@ resource "azurerm_public_ip" "pip_azfw" {
|
||||
public_ip_prefix_id = azurerm_public_ip_prefix.pip_prefix.id
|
||||
}
|
||||
|
||||
resource "azurerm_public_ip" "pip_azfw_2" {
|
||||
name = "pip-azfw-1"
|
||||
location = azurerm_resource_group.rg.location
|
||||
resource_group_name = azurerm_resource_group.rg.name
|
||||
sku = "Standard"
|
||||
allocation_method = "Static"
|
||||
public_ip_prefix_id = azurerm_public_ip_prefix.pip_prefix.id
|
||||
}
|
||||
|
||||
resource "azurerm_virtual_network" "azfw_vnet" {
|
||||
name = "azfw-vnet"
|
||||
location = azurerm_resource_group.rg.location
|
||||
@ -204,6 +213,10 @@ resource "azurerm_firewall" "fw" {
|
||||
subnet_id = azurerm_subnet.azfw_subnet.id
|
||||
public_ip_address_id = azurerm_public_ip.pip_azfw.id
|
||||
}
|
||||
ip_configuration {
|
||||
name = "azfw-ipconfig-2"
|
||||
public_ip_address_id = azurerm_public_ip.pip_azfw_2.id
|
||||
}
|
||||
firewall_policy_id = azurerm_firewall_policy.azfw_policy.id
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,7 @@ variable "virtual_machine_size" {
|
||||
}
|
||||
|
||||
variable "admin_username" {
|
||||
type = string
|
||||
type = string
|
||||
description = "value of the admin username."
|
||||
default = "azureuser"
|
||||
default = "azureuser"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user