Skip to content

Commit 3ca00c6

Browse files
committed
update to follow change in aws_db_instance id
aws_db_instance was updated by hashicorp/terraform-provider-aws#31232 such that the `id` attribute now tracks the resource ID, and the identifier is now returned in a new attribute named `identifier`. The resource ID is already available in `instance_resource_id`. This fix allows existing users to continue using this module with no changes and preserves the original function of the `id` attribute in this module. Fixes terraform-aws-modules#495.
1 parent 51ededc commit 3ca00c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/db_instance/outputs.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ output "db_instance_hosted_zone_id" {
5050

5151
output "db_instance_id" {
5252
description = "The RDS instance ID"
53-
value = try(aws_db_instance.this[0].id, "")
53+
value = try(aws_db_instance.this[0].identifier, "")
5454
}
5555

5656
output "db_instance_resource_id" {

0 commit comments

Comments
 (0)