Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
als753 committed Nov 8, 2022
1 parent 0d65065 commit 22c47ac
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions aws/rds/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 22c47ac

Please sign in to comment.