diff --git a/infrastructure/certificate.tf b/infrastructure/certificate.tf index c77cb2e..e616c2f 100644 --- a/infrastructure/certificate.tf +++ b/infrastructure/certificate.tf @@ -22,7 +22,7 @@ resource "cloudflare_record" "dns_instance_validation" { zone_id = data.cloudflare_zone.dns_zone.id name = each.value.name - value = trimsuffix(each.value.record, ".") + content = trimsuffix(each.value.record, ".") type = each.value.type ttl = 1 proxied = false diff --git a/infrastructure/region/network.tf b/infrastructure/region/network.tf index 0508b39..a4a97cc 100644 --- a/infrastructure/region/network.tf +++ b/infrastructure/region/network.tf @@ -32,7 +32,7 @@ resource "aws_route_table" "public" { resource "aws_eip" "nat" { count = 2 - vpc = true + domain = "vpc" tags = { Region = data.aws_region.current.name diff --git a/infrastructure/versions.tf b/infrastructure/versions.tf index c238c02..5337068 100644 --- a/infrastructure/versions.tf +++ b/infrastructure/versions.tf @@ -1,14 +1,15 @@ terraform { - required_version = "= 1.7.5" + 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" } } }