-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
db_instance_id is returning the DB Resource ID #498
Comments
I may have found a thread to pull on here: hashicorp/terraform-provider-aws#507 This ticket in the AWS provider is to allow users to change the DB identifier without destroying the existing resource. It seems there are some changes in a commit referenced there that have the module use the resource identifier instead of the instance identifier in some cases. I haven't parsed this fully yet, but this might be part of the issue. |
OK, I believe I have found the issue. The ... appears to create a new and currently undocumented attribute named This was merged as hashicorp/terraform-provider-aws#31232. I do not have the ability to test a fix at the moment, but it appears that in addition to the issue in this module, there is probably also a documentation update that needs to be made on the provider end (submitted here: hashicorp/terraform-provider-aws#31854). |
This issue has been resolved in version 6.0.0 🎉 |
Thanks, this change had broken some stuff inexplicably when upgrading. Thanks for the report and fix! 🙏 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
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 thedb_resource_id
returned.The console indicates that an appropriate identifier is set, and requesting the arn for the rds instance shows the identifier correctly.
Versions
Module version [Required]: 5.9.0
Terraform version: 1.4.6
Reproduction Code [Required]
Steps to reproduce the behavior:
db_instance_id
of the deployed databaseExpected 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):
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.
The text was updated successfully, but these errors were encountered: