Skip to content

Commit

Permalink
db instance parameter support (#7)
Browse files Browse the repository at this point in the history
* db instance parameter support

* db instance support
  • Loading branch information
Montek30 authored Aug 18, 2023
1 parent 6a8f5ac commit 527fcc0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rds.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ resource "aws_rds_cluster" "main" {

allow_major_version_upgrade = var.allow_major_version_upgrade

db_instance_parameter_group_name = (
var.allow_major_version_upgrade ?
var.create_parameter_group ? aws_db_parameter_group.main[0].id : var.db_parameter_group_name :
null
)

tags = merge(var.tags, var.cluster_tags)

dynamic "s3_import" {
Expand Down

0 comments on commit 527fcc0

Please sign in to comment.