-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathbastion.tf
24 lines (21 loc) · 836 Bytes
/
bastion.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Copyright (c) 2021 Microsoft
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
resource "azurerm_public_ip" "bastion_ip" {
name = "${var.prefix}-public-ip-bastion"
location = azurerm_resource_group.aml_rg.location
resource_group_name = azurerm_resource_group.aml_rg.name
allocation_method = "Static"
sku = "Standard"
}
resource "azurerm_bastion_host" "jumphost_bastion" {
name = "${var.prefix}-bastion-host"
location = azurerm_resource_group.aml_rg.location
resource_group_name = azurerm_resource_group.aml_rg.name
ip_configuration {
name = "configuration"
subnet_id = azurerm_subnet.bastion_subnet.id
public_ip_address_id = azurerm_public_ip.bastion_ip.id
}
}