mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat(oci): add SSH in
This commit is contained in:
parent
405b34d414
commit
4770a8ed3f
1 changed files with 15 additions and 1 deletions
|
|
@ -14,13 +14,27 @@ locals {
|
|||
}
|
||||
}
|
||||
|
||||
resource "oci_core_network_security_group_security_rule" "this" {
|
||||
resource "oci_core_network_security_group_security_rule" "icmp_in" {
|
||||
direction = "INGRESS"
|
||||
network_security_group_id = oci_core_network_security_group.this.id
|
||||
protocol = local.protocol_number.icmp
|
||||
source = "0.0.0.0/0"
|
||||
}
|
||||
|
||||
resource "oci_core_network_security_group_security_rule" "ssh_in" {
|
||||
direction = "INGRESS"
|
||||
network_security_group_id = oci_core_network_security_group.this.id
|
||||
protocol = local.protocol_number.tcp
|
||||
source = "0.0.0.0/0"
|
||||
|
||||
tcp_options {
|
||||
destination_port_range {
|
||||
max = 22
|
||||
min = 22
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
output "nsg_id" {
|
||||
value = oci_core_network_security_group.this.id
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue