diff --git a/modules/db_instance/outputs.tf b/modules/db_instance/outputs.tf index cd324603..9737a639 100644 --- a/modules/db_instance/outputs.tf +++ b/modules/db_instance/outputs.tf @@ -9,7 +9,7 @@ locals { this_db_instance_id = element(concat(aws_db_instance.this_mssql.*.id, aws_db_instance.this.*.id, [""]), 0) this_db_instance_resource_id = element(concat(aws_db_instance.this_mssql.*.resource_id, aws_db_instance.this.*.resource_id, [""]), 0) this_db_instance_status = element(concat(aws_db_instance.this_mssql.*.status, aws_db_instance.this.*.status, [""]), 0) - this_db_instance_name = element(concat(aws_db_instance.this_mssql.*.name, aws_db_instance.this.*.name, [""]), 0) + this_db_instance_name = element(concat(aws_db_instance.this_mssql.*.name, aws_db_instance.this.*.db_name, [""]), 0) this_db_instance_username = element(concat(aws_db_instance.this_mssql.*.username, aws_db_instance.this.*.username, [""]), 0) this_db_instance_port = element(concat(aws_db_instance.this_mssql.*.port, aws_db_instance.this.*.port, [""]), 0) this_db_instance_ca_cert_identifier = element(concat(aws_db_instance.this_mssql.*.ca_cert_identifier, aws_db_instance.this.*.ca_cert_identifier, [""]), 0) diff --git a/modules/db_instance/versions.tf b/modules/db_instance/versions.tf index 9234cc98..77c57747 100644 --- a/modules/db_instance/versions.tf +++ b/modules/db_instance/versions.tf @@ -4,9 +4,8 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 2.49" + version = ">= 5" } - random = { source = "hashicorp/random" version = ">= 2.2"