Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding variables auto_minor_version_upgrade and monitoring_interval #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
18 changes: 10 additions & 8 deletions aurora.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ resource "aws_rds_cluster" "aurora_cluster" {
}

resource "aws_rds_cluster_instance" "cluster_instances" {
count = var.db_type == "aurora" ? var.count_aurora_instances : 0
identifier = var.identifier == "" ? "${var.environment_name}-${var.name}-${count.index}" : "${var.identifier}-${count.index}"
cluster_identifier = aws_rds_cluster.aurora_cluster[0].id
instance_class = var.instance_class
engine = aws_rds_cluster.aurora_cluster[0].engine
engine_version = aws_rds_cluster.aurora_cluster[0].engine_version
db_parameter_group_name = var.create_db_parameter_group == true ? aws_db_parameter_group.aurora_custom_db_pg[count.index].name : ""
publicly_accessible = var.publicly_accessible
count = var.db_type == "aurora" ? var.count_aurora_instances : 0
identifier = var.identifier == "" ? "${var.environment_name}-${var.name}-${count.index}" : "${var.identifier}-${count.index}"
cluster_identifier = aws_rds_cluster.aurora_cluster[0].id
instance_class = var.instance_class
engine = aws_rds_cluster.aurora_cluster[0].engine
engine_version = aws_rds_cluster.aurora_cluster[0].engine_version
db_parameter_group_name = var.create_db_parameter_group == true ? aws_db_parameter_group.aurora_custom_db_pg[count.index].name : ""
publicly_accessible = var.publicly_accessible
auto_minor_version_upgrade = var.auto_minor_version_upgrade
monitoring_interval = var.monitoring_interval
}

resource "aws_rds_cluster_parameter_group" "custom_cluster_pg" {
Expand Down
Loading