-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.tf
32 lines (31 loc) · 991 Bytes
/
local.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
25
26
27
28
29
30
31
32
locals {
#Governance tags
commonTags = {
environment = "${var.env_prefix}"
}
#NSG Rules for the nic
rules = {
ssh = {
name = "Allow_Admin_SSH_Access"
priority = 100
direction = "Inbound"
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "22"
source_address_prefixes = ["${var.trusted_ip}"]
destination_address_prefix = "*"
},
https = {
name = "Allow_Admin_Web_Access"
priority = 110
direction = "Inbound"
access = "Allow"
protocol = "Tcp"
source_port_range = "*"
destination_port_range = "${var.ui_port}"
source_address_prefixes = ["${var.trusted_ip}"]
destination_address_prefix = "*"
}
}
}