|
|
|
|
@ -23,15 +23,15 @@ resource "azure_security_group" "apps" {
|
|
|
|
|
|
|
|
|
|
resource "azure_security_group_rule" "ssh_access" {
|
|
|
|
|
name = "ssh-access-rule"
|
|
|
|
|
security_group_names = ["${azure_security_group.web.name}", "${azure_security_group.apps.name}"]
|
|
|
|
|
type = "Inbound"
|
|
|
|
|
action = "Allow"
|
|
|
|
|
priority = 200
|
|
|
|
|
source_address_prefix = "100.0.0.0/32"
|
|
|
|
|
source_port_range = "*"
|
|
|
|
|
destination_address_prefix = "10.0.0.0/32"
|
|
|
|
|
destination_port_range = "22"
|
|
|
|
|
protocol = "TCP"
|
|
|
|
|
security_group_names = ["${azure_security_group.web.name}", "${azure_security_group.apps.name}"]
|
|
|
|
|
type = "Inbound"
|
|
|
|
|
action = "Allow"
|
|
|
|
|
priority = 200
|
|
|
|
|
source_address_prefix = "100.0.0.0/32"
|
|
|
|
|
source_port_range = "*"
|
|
|
|
|
destination_address_prefix = "10.0.0.0/32"
|
|
|
|
|
destination_port_range = "22"
|
|
|
|
|
protocol = "TCP"
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|