2020-04-26 12:15:52 +01:00
|
|
|
resource "vultr_server" "grimes" {
|
|
|
|
plan_id = 201
|
|
|
|
region_id = 8
|
|
|
|
os_id = 159
|
|
|
|
hostname = "grimes"
|
|
|
|
firewall_group_id = vultr_firewall_group.grimes.id
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "vultr_firewall_group" "grimes" {
|
|
|
|
description = "grimes"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "vultr_firewall_rule" "grimes_ping" {
|
|
|
|
firewall_group_id = vultr_firewall_group.grimes.id
|
|
|
|
protocol = "icmp"
|
|
|
|
network = "0.0.0.0/0"
|
|
|
|
}
|
2020-04-26 14:26:48 +01:00
|
|
|
|
|
|
|
resource "vultr_firewall_rule" "grimes_web" {
|
|
|
|
firewall_group_id = vultr_firewall_group.grimes.id
|
|
|
|
protocol = "tcp"
|
|
|
|
from_port = 80
|
|
|
|
network = "0.0.0.0/0"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "vultr_firewall_rule" "grimes_web_secure" {
|
|
|
|
firewall_group_id = vultr_firewall_group.grimes.id
|
|
|
|
protocol = "tcp"
|
|
|
|
from_port = 443
|
|
|
|
network = "0.0.0.0/0"
|
|
|
|
}
|