-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Description
I am using this module as part of a module in our project's infrastructure. I recently began adding some automated monitoring and was trying to set up some alarms for some RDS metrics. When I attempted to have the module output the db_instance_id
, I instead get the db_resource_id
returned.
The console indicates that an appropriate identifier is set, and requesting the arn for the rds instance shows the identifier correctly.
- ✋ I have searched the open/closed issues and my issue is not listed.
Versions
-
Module version [Required]: 5.9.0
-
Terraform version: 1.4.6
- Provider version(s): 5.1.0
Reproduction Code [Required]
output "db_instance_id" {
value = module.db.db_instance_id
}
Steps to reproduce the behavior:
- Deploy RDS using module
- Request
db_instance_id
of the deployed database
Expected behavior
db_instance_id
should return the instance identifier and not the resource identifier.
Actual behavior
db_instance_id
returns the resource identifier.
Terminal Output Screenshot(s)
Example (partially redacted):
app_db_id = "db-63B5TPHO4P6G2NRAVXEEXXXXXX"
oauth_db_id = "db-IC6E5RWM5UD6OOYMFTKIXXXXXX"
Additional context
Note that another infrastructure deployment operating with provider version 4.58.0 and module version 5.6.0 returns the instance identifier correctly.