Fixing group_id issue and missing quotes

This commit is contained in:
shockrah 2023-10-20 15:09:23 -07:00
parent e8dec5a6d8
commit 8aee1483fc
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ resource vultr_firewall_group mail {
# Create all the tcp rules of type ipv4 # Create all the tcp rules of type ipv4
resource vultr_firewall_rule mail_tcp { resource vultr_firewall_rule mail_tcp {
for_each = toset([for v in local.rules.tcp: tostring(v)]) 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" protocol = "tcp"
ip_type = "v4" ip_type = "v4"
subnet = "0.0.0.0" subnet = "0.0.0.0"
@ -24,7 +24,7 @@ resource vultr_firewall_rule mail_tcp {
# Create all the udp rules of type ipv4 # Create all the udp rules of type ipv4
resource vultr_firewall_rule mail_udp { resource vultr_firewall_rule mail_udp {
for_each = toset([for v in local.rules.udp: tostring(v)]) 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" protocol = "udp"
ip_type = "v4" ip_type = "v4"
subnet = "0.0.0.0" subnet = "0.0.0.0"

View File

@ -17,7 +17,7 @@ resource local_sensitive_file mail_public_key {
} }
resource vultr_ssh_key mail { resource vultr_ssh_key mail {
name = mail_key name = "mail_key"
ssh_key = tls_private_key.mail.public_key_openssh ssh_key = tls_private_key.mail.public_key_openssh
} }