Skip to content

Conversation

chandu-rrsch
Copy link

Description

This change lets the user set a custom name tag for aurora security group in tags as it is being overridden by the security group name defined. The change is in the order of the maps in the security group tags.

Motivation and Context

This change lets module user to set custom name tag for aurora security group instead of the security group name as the value for name tag.
Issue: #492

Breaking Changes

The current changes renames existing Name tag which does not break any existing infrastructure.

How Has This Been Tested?

  • [ ✅ ] 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

@chandu-rrsch chandu-rrsch changed the title #issue 492 rearranged maps in merge in main.tf:340 For rds aurora security group tags fix: #issue 492 rearranged maps in merge in main.tf:340 For rds aurora security group tags Mar 27, 2025
@chandu-rrsch chandu-rrsch changed the title fix: #issue 492 rearranged maps in merge in main.tf:340 For rds aurora security group tags Fix: #issue 492 rearranged maps in merge in main.tf:340 For rds aurora security group tags Mar 27, 2025
@chandu-rrsch chandu-rrsch changed the title Fix: #issue 492 rearranged maps in merge in main.tf:340 For rds aurora security group tags fix: #issue 492 rearranged maps in merge in main.tf:340 For rds aurora security group tags Mar 27, 2025
@chandu-rrsch chandu-rrsch changed the title fix: #issue 492 rearranged maps in merge in main.tf:340 For rds aurora security group tags fix: Rearranged maps in merge in main.tf:340 for rds aurora security group tags Mar 27, 2025
description = coalesce(var.security_group_description, "Control traffic to/from RDS Aurora ${var.name}")

tags = merge(var.tags, var.security_group_tags, { Name = local.security_group_name })
tags = merge(var.tags, { Name = local.security_group_name }, var.security_group_tags)
Copy link
Member

Choose a reason for hiding this comment

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

this is incorrect - it is correct as its written today

Copy link
Author

Choose a reason for hiding this comment

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

Thanks.

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 27, 2025
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.

2 participants