|
@@ -17,10 +17,10 @@ output "ca_cert_identifier" {
|
|
|
|
|
|
module "jira_db" {
|
|
|
source = "terraform-aws-modules/rds/aws"
|
|
|
- version = "~> v3.0"
|
|
|
+ version = "~> v4.0"
|
|
|
|
|
|
identifier = var.identifier # this is the RDS identifier, not the DB name
|
|
|
- name = "jira" # the DB name
|
|
|
+ db_name = "jira" # the DB name
|
|
|
|
|
|
engine = "postgres"
|
|
|
auto_minor_version_upgrade = true
|
|
@@ -60,9 +60,10 @@ module "jira_db" {
|
|
|
|
|
|
# DB subnet group
|
|
|
subnet_ids = var.subnets
|
|
|
+ create_db_subnet_group = true
|
|
|
|
|
|
# Snapshot name upon DB deletion
|
|
|
- final_snapshot_identifier = "${var.identifier}-final-snapshot"
|
|
|
+ final_snapshot_identifier_prefix = "${var.identifier}-final-snapshot"
|
|
|
|
|
|
# Database Deletion Protection
|
|
|
deletion_protection = var.instance_termination_protection
|