Update vultr provider

This was a pretty breaking change which required re-importing most of its state
This commit is contained in:
Jake Howard
2021-03-23 21:22:31 +00:00
parent 3c06eb748d
commit bbfe85b2c8
6 changed files with 55 additions and 40 deletions

View File

@ -1,7 +1,6 @@
resource "vultr_server" "casey" {
plan_id = 200
region_id = 8
os_id = 159
resource "vultr_instance" "casey" {
plan = "" # On a plan unsupported by API
region = "lhr"
hostname = "casey"
firewall_group_id = vultr_firewall_group.casey.id
}
@ -13,54 +12,70 @@ resource "vultr_firewall_group" "casey" {
resource "vultr_firewall_rule" "casey_ping" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "icmp"
network = "0.0.0.0/0"
ip_type = "v4"
subnet = "0.0.0.0"
subnet_size = 0
}
resource "vultr_firewall_rule" "casey_web" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "tcp"
from_port = 80
network = "0.0.0.0/0"
port = 80
ip_type = "v4"
subnet = "0.0.0.0"
subnet_size = 0
}
resource "vultr_firewall_rule" "casey_web_secure" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "tcp"
from_port = 443
network = "0.0.0.0/0"
port = 443
ip_type = "v4"
subnet = "0.0.0.0"
subnet_size = 0
}
resource "vultr_firewall_rule" "casey_wireguard" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "udp"
from_port = 51820
network = "0.0.0.0/0"
port = 51820
ip_type = "v4"
subnet = "0.0.0.0"
subnet_size = 0
}
resource "vultr_firewall_rule" "casey_quassel" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "tcp"
from_port = 4242
network = "0.0.0.0/0"
port = 4242
ip_type = "v4"
subnet = "0.0.0.0"
subnet_size = 0
}
resource "vultr_firewall_rule" "casey_matrix" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "tcp"
from_port = 8448
network = "0.0.0.0/0"
port = 8448
ip_type = "v4"
subnet = "0.0.0.0"
subnet_size = 0
}
resource "vultr_firewall_rule" "casey_mc" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "tcp"
from_port = 25566
network = "0.0.0.0/0"
port = 25566
ip_type = "v4"
subnet = "0.0.0.0"
subnet_size = 0
}
resource "vultr_firewall_rule" "casey_nebula" {
firewall_group_id = vultr_firewall_group.casey.id
protocol = "udp"
from_port = 6328
network = "0.0.0.0/0"
port = 6328
ip_type = "v4"
subnet = "0.0.0.0"
subnet_size = 0
}