Skip to content

Commit

Permalink
Merge pull request #33 from oozou/fix/db_route_issue
Browse files Browse the repository at this point in the history
fix db route table error when disable nat
  • Loading branch information
lycbrian authored May 24, 2023
2 parents 6cb9f81 + 53f4438 commit 504f9b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this module will be documented in this file.

## [v1.2.5] - 2023-05-24

### Changed

- Update `aws_route_table.database` by removing is_create_nat_gateway condition

## [v1.2.4] - 2022-09-27

### Added
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ resource "aws_route_table_association" "private" {
/* -------------------------------------------------------------------------- */
/* ------------------------------- route table ------------------------------ */
resource "aws_route_table" "database" {
count = var.is_create_vpc && var.is_create_database_subnet_route_table && length(var.database_subnets) > 0 && var.is_create_nat_gateway ? var.is_enable_single_nat_gateway ? 1 : length(var.database_subnets) : 0
count = var.is_create_vpc && var.is_create_database_subnet_route_table && length(var.database_subnets) > 0 ? local.nat_gateway_count : 0

vpc_id = aws_vpc.this[0].id

Expand Down

0 comments on commit 504f9b8

Please sign in to comment.