From de8aaa46b5e852701beb825f7e9274e0ad20fbc7 Mon Sep 17 00:00:00 2001 From: Eunsu Kang <56429615+ssupecial@users.noreply.github.com> Date: Tue, 27 Aug 2024 13:56:13 +0900 Subject: [PATCH] feat(infra): delete nat-gateway (#2018) --- apps/infra/production/network/README.md | 1 - apps/infra/production/network/public_network.tf | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/apps/infra/production/network/README.md b/apps/infra/production/network/README.md index d8b2e30e26..1e121f6f29 100644 --- a/apps/infra/production/network/README.md +++ b/apps/infra/production/network/README.md @@ -33,7 +33,6 @@ No modules. | [aws_cloudfront_distribution.codedang](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_distribution) | resource | | [aws_eip.for_nat](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/eip) | resource | | [aws_internet_gateway.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/internet_gateway) | resource | -| [aws_nat_gateway.public_subnet1](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/nat_gateway) | resource | | [aws_route53_record.certificate](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource | | [aws_route53_record.codedang](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource | | [aws_route53_zone.codedang](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_zone) | resource | diff --git a/apps/infra/production/network/public_network.tf b/apps/infra/production/network/public_network.tf index f4b16b7a6d..c8cf72ac6f 100644 --- a/apps/infra/production/network/public_network.tf +++ b/apps/infra/production/network/public_network.tf @@ -20,16 +20,6 @@ resource "aws_eip" "for_nat" { } } -# TODO: public_subnet2에도 할당 필요 (-> vpc endpoint로 수정하는 방향으로 진행하기) -resource "aws_nat_gateway" "public_subnet1" { - allocation_id = aws_eip.for_nat.id - subnet_id = aws_subnet.public_subnet1.id - - tags = { - Name = "Codedang-NatGateway-1" - } -} - resource "aws_route_table" "public" { vpc_id = aws_vpc.main.id