resource "aws_db_proxy_default_target_group" "default" {
  db_proxy_name = "mc-rds-stage"
  connection_pool_config {
    connection_borrow_timeout    = 299
    init_query                   = null
    max_connections_percent      = 95
    max_idle_connections_percent = 95
    session_pinning_filters      = []
  }
}

resource "aws_db_proxy_target" "mc-rds-stage" {
  db_instance_identifier = "mc-rds-stage"
  db_proxy_name          = "mc-rds-stage"
  target_group_name      = "default"
}