From 8aee1483fca3e2957ddf30cbaa0d3879d992e50a Mon Sep 17 00:00:00 2001 From: shockrah Date: Fri, 20 Oct 2023 15:09:23 -0700 Subject: [PATCH] Fixing group_id issue and missing quotes --- infra/email-server/firewall.tf | 4 ++-- infra/email-server/ssh.tf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/infra/email-server/firewall.tf b/infra/email-server/firewall.tf index 11896ca..f9ac383 100644 --- a/infra/email-server/firewall.tf +++ b/infra/email-server/firewall.tf @@ -13,7 +13,7 @@ resource vultr_firewall_group mail { # Create all the tcp rules of type ipv4 resource vultr_firewall_rule mail_tcp { for_each = toset([for v in local.rules.tcp: tostring(v)]) - firewall_group_id = vultr_instance.mail.id + firewall_group_id = vultr_firewall_group.mail.id protocol = "tcp" ip_type = "v4" subnet = "0.0.0.0" @@ -24,7 +24,7 @@ resource vultr_firewall_rule mail_tcp { # Create all the udp rules of type ipv4 resource vultr_firewall_rule mail_udp { for_each = toset([for v in local.rules.udp: tostring(v)]) - firewall_group_id = vultr_instance.mail.id + firewall_group_id = vultr_firewall_group.mail.id protocol = "udp" ip_type = "v4" subnet = "0.0.0.0" diff --git a/infra/email-server/ssh.tf b/infra/email-server/ssh.tf index d678b19..9eea82b 100644 --- a/infra/email-server/ssh.tf +++ b/infra/email-server/ssh.tf @@ -17,7 +17,7 @@ resource local_sensitive_file mail_public_key { } resource vultr_ssh_key mail { - name = mail_key + name = "mail_key" ssh_key = tls_private_key.mail.public_key_openssh }