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: Separate db_instance_tags from merged tags sub-module input #544

Merged
merged 5 commits into from
Mar 19, 2024

Conversation

winthropgutmann-ef
Copy link
Contributor

@winthropgutmann-ef winthropgutmann-ef commented Mar 18, 2024

Description

This PR splits the two on input so that the var.db_instance_tags are only applied to the rds_db_instance, preserving the functionality that if var.tags is defined, it will be merged with var.db_instance_tags

Motivation and Context

This change is required because it incorrectly maps var.db_instance_tags to all resources associated with the module. This functionality is reserved for the var.tags input. var.db_instance_profile described as "Additional tags for the DB instance", only these tags should be associated with the rds_db_instance

Breaking Changes

None - backwards compatible since var.db_instance_tags and var.tags are still merged on this.db_instance when present.

How Has This Been Tested?

I need to test these changes, we have an existing project that this might be applicable in.

  • 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

@winthropgutmann-ef winthropgutmann-ef changed the title Splitting db_instance_tags from tags module input fix: Splitting var.db_instance_tags from var.tags module input Mar 18, 2024
@bryantbiggs bryantbiggs changed the title fix: Splitting var.db_instance_tags from var.tags module input fix: Separate db_instance_tags from merged tags sub-module input Mar 19, 2024
@bryantbiggs bryantbiggs marked this pull request as ready for review March 19, 2024 00:04
Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense, thank you

@bryantbiggs bryantbiggs merged commit 89a5763 into terraform-aws-modules:master Mar 19, 2024
24 checks passed
antonbabenko pushed a commit that referenced this pull request Mar 19, 2024
## [6.5.3](v6.5.2...v6.5.3) (2024-03-19)

### Bug Fixes

* Separate `db_instance_tags` from merged `tags` sub-module input ([#544](#544)) ([89a5763](89a5763))
@antonbabenko
Copy link
Member

This PR is included in version 6.5.3 🎉

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 Apr 18, 2024
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.

3 participants