From 22c47ac4717d8055b465dc7c2fdce50b80de2033 Mon Sep 17 00:00:00 2001 From: Amanda Snyder Date: Tue, 8 Nov 2022 11:59:13 -0700 Subject: [PATCH] fmt --- aws/rds/main.tf | 56 ++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/aws/rds/main.tf b/aws/rds/main.tf index a2dcc3b..f5a9d8a 100644 --- a/aws/rds/main.tf +++ b/aws/rds/main.tf @@ -37,34 +37,34 @@ resource "aws_db_subnet_group" "mod" { } resource "aws_db_instance" "mod" { - allocated_storage = var.storage - allow_major_version_upgrade = true - apply_immediately = true - auto_minor_version_upgrade = var.auto_minor_version_upgrade - backup_retention_period = var.backup_retention_period - db_subnet_group_name = var.source_db == "" ? local.subnet_group_name : "" - engine = var.engine - engine_version = var.engine_version - final_snapshot_identifier = "${var.name}-${var.env}-${var.engine}-final-snapshot" - identifier = var.identifier != "" ? var.identifier : "${var.name}-${var.env}-${var.engine}" - iops = var.iops - instance_class = var.node_type - kms_key_id = var.kms_key_id - max_allocated_storage = var.max_allocated_storage - monitoring_interval = var.monitoring_interval - monitoring_role_arn = var.monitoring_interval == 0 ? "" : aws_iam_role.rds_enhanced_monitoring[0].arn - multi_az = var.multi_az - parameter_group_name = local.parameter_group_name - password = "nopassword" - performance_insights_enabled = var.performance_insights_enabled - publicly_accessible = var.publicly_accessible - replicate_source_db = var.source_db - skip_final_snapshot = var.skip_final_snapshot - storage_encrypted = var.storage_encrypted - storage_type = var.storage_type - tags = var.tags - username = var.username != "" ? var.username : "${var.name}${var.username_suffix}" - + allocated_storage = var.storage + allow_major_version_upgrade = true + apply_immediately = true + auto_minor_version_upgrade = var.auto_minor_version_upgrade + backup_retention_period = var.backup_retention_period + db_subnet_group_name = var.source_db == "" ? local.subnet_group_name : "" + engine = var.engine + engine_version = var.engine_version + final_snapshot_identifier = "${var.name}-${var.env}-${var.engine}-final-snapshot" + identifier = var.identifier != "" ? var.identifier : "${var.name}-${var.env}-${var.engine}" + iops = var.iops + instance_class = var.node_type + kms_key_id = var.kms_key_id + max_allocated_storage = var.max_allocated_storage + monitoring_interval = var.monitoring_interval + monitoring_role_arn = var.monitoring_interval == 0 ? "" : aws_iam_role.rds_enhanced_monitoring[0].arn + multi_az = var.multi_az + parameter_group_name = local.parameter_group_name + password = "nopassword" + performance_insights_enabled = var.performance_insights_enabled + publicly_accessible = var.publicly_accessible + replicate_source_db = var.source_db + skip_final_snapshot = var.skip_final_snapshot + storage_encrypted = var.storage_encrypted + storage_type = var.storage_type + tags = var.tags + username = var.username != "" ? var.username : "${var.name}${var.username_suffix}" + vpc_security_group_ids = concat( var.vpc_security_group_ids, [aws_security_group.sg_on_rds_instance.id],