Skip to content
Merged
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
6 changes: 5 additions & 1 deletion terraform/database.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ resource "aws_db_parameter_group" "postgres15" {
}
}

# option_group_name is deliberately absent. Option groups do nothing for
# PostgreSQL, and AWS creates the default ones lazily -- naming
# "default:postgres-15" before it exists fails the apply with
# OptionGroupNotFoundFault. Leaving the attribute out lets RDS assign the
# family default itself during the major upgrade. Do not add it back.
resource "aws_db_instance" "default" {
allocated_storage = 100
allow_major_version_upgrade = true
Expand All @@ -40,7 +45,6 @@ resource "aws_db_instance" "default" {
instance_class = "db.t3.small"
multi_az = false
network_type = "IPV4"
option_group_name = "default:postgres-15"
parameter_group_name = aws_db_parameter_group.postgres15.name
port = 5432
publicly_accessible = true
Expand Down
Loading