Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,9 @@ application-local.yml
*.tfstate
*.tfstate.*
*.tfvars
!*.tfvars.example
!*.tfvars.example

### tunnel ###
application-local-tunnel.yml
start-dev-tunnel.sh
stop-dev-tunnel.sh
4 changes: 2 additions & 2 deletions infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ resource "aws_instance" "app" {
# RDS Subnet Group
resource "aws_db_subnet_group" "main" {
name = "${var.project_name}-${var.environment}-db-subnet-group"
subnet_ids = aws_subnet.public[*].id
subnet_ids = aws_subnet.private[*].id

tags = {
Name = "${var.project_name}-${var.environment}-db-subnet-group"
Expand All @@ -434,7 +434,7 @@ resource "aws_db_instance" "main" {
vpc_security_group_ids = [aws_security_group.rds.id]

skip_final_snapshot = true
publicly_accessible = true
publicly_accessible = false
backup_retention_period = 7
enabled_cloudwatch_logs_exports = ["error", "general", "slowquery"]

Expand Down