From b34efc00158f3da08d054d162ba56f594cc05f52 Mon Sep 17 00:00:00 2001 From: Aakib khan <101191261+Aakibgithuber@users.noreply.github.com> Date: Thu, 6 Aug 2026 19:04:32 +0530 Subject: [PATCH] refactor(terraform): replace deprecated `vpc` argument with `domain = "vpc"` for aws_eip --- DevOps-Project-01/infrastructure/modules/vpc/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}