mirror of
https://github.com/oscarhermoso/terraform-provider-binarylane
synced 2026-10-20 05:56:05 +11:00
46117cf31d
* 👨⚕️ Create docs * 👩⚕️ self pr feedback * 👩⚕️ more self pr feedback
18 lines
471 B
Terraform
18 lines
471 B
Terraform
resource "binarylane_server" "example" {
|
|
# ...
|
|
}
|
|
|
|
resource "binarylane_server_firewall_rules" "example" {
|
|
server_id = binarylane_server.example.id
|
|
firewall_rules = [
|
|
{
|
|
description = "Allow SSH"
|
|
protocol = "tcp"
|
|
source_addresses = ["0.0.0.0/0"]
|
|
destination_addresses = [binarylane_server.example.private_ipv4_addresses.0]
|
|
destination_ports = ["22"]
|
|
action = "accept"
|
|
}
|
|
]
|
|
}
|