diff --git a/.terraform.lock.hcl b/.terraform.lock.hcl index e1eb643..f0b159a 100644 --- a/.terraform.lock.hcl +++ b/.terraform.lock.hcl @@ -3,7 +3,7 @@ provider "registry.terraform.io/hashicorp/aws" { version = "5.0.1" - constraints = ">= 4.0.0" + constraints = ">= 5.0.0" hashes = [ "h1:Jz41xV1uwYaT5TQGW05seb2vHrwMtRJh19K7MArqoYc=", "h1:SB38lIGsF3yHKujEBnTSsH4VOAskn8XZNPpuCPuhJYw=", diff --git a/versions.tf b/versions.tf index 3717577..e7faed6 100644 --- a/versions.tf +++ b/versions.tf @@ -2,7 +2,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 4.0.0" + version = ">= 5.0.0" } } required_version = ">=1.0.0" diff --git a/vpc.tf b/vpc.tf index 101525d..aaa1ca7 100644 --- a/vpc.tf +++ b/vpc.tf @@ -21,9 +21,9 @@ resource "aws_subnet" "private" { } resource "aws_eip" "this" { - count = var.create_networking_config ? length(var.public_subnet_cidrs) : 0 - vpc = true - tags = merge({ + count = var.create_networking_config ? length(var.public_subnet_cidrs) : 0 + domain = "vpc" + tags = merge({ Name = "mwaa-${var.environment_name}-eip-${count.index}" }, var.tags) }