diff --git a/community/dns.tf b/community/dns.tf index 137e53b..1f45d03 100644 --- a/community/dns.tf +++ b/community/dns.tf @@ -5,7 +5,7 @@ data "cloudflare_zone" "dns_zone" { resource "cloudflare_record" "community" { zone_id = data.cloudflare_zone.dns_zone.id name = "community" - value = aws_eip.discourse.public_ip + content = aws_eip.discourse.public_ip type = "A" proxied = true } diff --git a/community/ec2.tf b/community/ec2.tf index 622f618..fd7a805 100644 --- a/community/ec2.tf +++ b/community/ec2.tf @@ -9,5 +9,5 @@ resource "aws_instance" "discourse" { resource "aws_eip" "discourse" { instance = aws_instance.discourse.id - vpc = true + domain = "vpc" } diff --git a/community/main.tf b/community/main.tf index 2b8e605..270242e 100644 --- a/community/main.tf +++ b/community/main.tf @@ -7,15 +7,17 @@ terraform { } } + required_version = "= 1.9.8" + required_providers { aws = { source = "hashicorp/aws" - version = "~> 4.0" + version = "~> 5.0" } cloudflare = { source = "cloudflare/cloudflare" - version = "~> 3.0" + version = "~> 4.0" } } }