Skip to content
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

fix: Update to follow change in db_instance id #499

Conversation

jwoytek
Copy link

@jwoytek jwoytek commented Jun 20, 2023

Description

A breaking change in the AWS provider changed the output of the upstream id attribute. Update the id module output to return the RDS DB instance identifier. This is an alternate solution to the one proposed in #495.

Motivation and Context

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 the base issue reported in #495.

Breaking Changes

This should not represent a breaking change, as the referenced identifier attribute has
existed in db_instance since 2.33, which is well earlier than the current requirements for
this module.

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

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.
@jwoytek jwoytek changed the title update to follow change in db_instance id fix: update to follow change in db_instance id Jun 20, 2023
@jwoytek jwoytek changed the title fix: update to follow change in db_instance id fix: Update to follow change in db_instance id Jun 20, 2023
@antonbabenko
Copy link
Member

This issue has been resolved in version 6.0.0 🎉

@github-actions
Copy link

I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants