diff --git a/DevOps-Project-01/infrastructure/modules/vpc/main.tf b/DevOps-Project-01/infrastructure/modules/vpc/main.tf index bbff2cc6..b42ac438 100644 --- a/DevOps-Project-01/infrastructure/modules/vpc/main.tf +++ b/DevOps-Project-01/infrastructure/modules/vpc/main.tf @@ -52,7 +52,7 @@ resource "aws_subnet" "private" { # Elastic IP for NAT Gateway resource "aws_eip" "nat" { count = length(var.public_subnets) - vpc = true + domain = "vpc" tags = { Name = "${var.environment}-nat-eip-${count.index + 1}" @@ -173,4 +173,4 @@ resource "aws_iam_role_policy" "flow_log" { } ] }) -} \ No newline at end of file +}