File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
scenarios/AksOpenAiTerraform/terraform/modules/nat_gateway Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 1
- locals {
2
- zones = [" 1" ]
3
- }
4
-
5
1
resource "azurerm_nat_gateway" "this" {
6
2
name = var. name
7
3
location = var. location
8
4
resource_group_name = var. resource_group_name
9
- idle_timeout_in_minutes = 4
10
- zones = local. zones
11
5
}
12
6
13
7
resource "azurerm_public_ip" "nat_gateway" {
14
8
name = " ${ var . name } PublicIp"
15
9
location = var. location
16
10
resource_group_name = var. resource_group_name
17
11
allocation_method = " Static"
18
- zones = local. zones
19
12
}
20
13
21
14
resource "azurerm_nat_gateway_public_ip_association" "nat_gategay_public_ip_association" {
22
15
nat_gateway_id = azurerm_nat_gateway. this . id
23
16
public_ip_address_id = azurerm_public_ip. nat_gateway . id
24
17
}
25
18
26
- resource "azurerm_subnet_nat_gateway_association" "nat-avd-sessionhosts " {
19
+ resource "azurerm_subnet_nat_gateway_association" "gateway_association " {
27
20
for_each = var. subnet_ids
28
21
subnet_id = each. value
29
22
nat_gateway_id = azurerm_nat_gateway. this . id
You can’t perform that action at this time.
0 commit comments