Skip to content

Commit

Permalink
feat(infra): delete nat-gateway (#2018)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssupecial authored Aug 27, 2024
1 parent e1413ab commit de8aaa4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion apps/infra/production/network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
10 changes: 0 additions & 10 deletions apps/infra/production/network/public_network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit de8aaa4

Please sign in to comment.