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

feat: Allow Custom 'Name' Tag For SG #187

Merged
merged 3 commits into from
Aug 20, 2020

Conversation

sojinss4u
Copy link
Contributor

Description

There are some use-cases where we need to set custom 'Name' tag for Security Group.
Eg: https://aws.amazon.com/blogs/security/how-to-automatically-update-your-security-groups-for-amazon-cloudfront-and-aws-waf-by-using-aws-lambda/

Above lambda script identify Msgs by looking at the name tag which needs to be set 'cloudfront_g / cloudfront_r'. Currently this is not possible as merge() function will give the second argument precedence over the first one.

From https://www.terraform.io/docs/configuration/functions/merge.html

If more than one given map or object defines the same key or attribute, then the one that is later in the argument sequence takes precedence.

Motivation and Context

Allow Custom Name Tags

Breaking Changes

None

How Has This Been Tested?

Tested locally by changing order in merge argument.

@sojinss4u sojinss4u changed the title Allow Custom 'Name' Tag For SG feat: Allow Custom 'Name' Tag For SG Aug 20, 2020
@antonbabenko antonbabenko merged commit 5f35ec2 into terraform-aws-modules:master Aug 20, 2020
@antonbabenko
Copy link
Member

Hi @sojinss4u !

I very much agree with this PR. Thanks a lot for it.

v3.16.0 has been just released.

It may break some people's code but it is easy to fix.

@robinbowes
Copy link
Contributor

It may break some people's code

Surely that means v4.0..0?

@antonbabenko
Copy link
Member

It may break, but also may not.

@robinbowes
Copy link
Contributor

So, a Schrödinger's release?

hoylemd added a commit to pixlee/terraform-aws-security-group that referenced this pull request Oct 14, 2020
* upstream/master:
  Updated CHANGELOG
  chore: Fixed formatting
  feat: Allow custom Name tag for security group (terraform-aws-modules#187)
  Updated CHANGELOG
  feat: Add JMX and Node exporter TCP ports for Kafka (terraform-aws-modules#186)
  Updated CHANGELOG
  feat: aws-provider version bump to >= 2.42, < 4.0 (terraform-aws-modules#184)
  Updated CHANGELOG
  feat: Add support for Solr (terraform-aws-modules#181)
  Updated CHANGELOG
  feat: Added optional revoke_rules_on_delete functionality (required for EMR) (terraform-aws-modules#179)
  Updated CHANGELOG
  feat: Updated version requirements to support Terraform 0.13 (terraform-aws-modules#178)
  Updated CHANGELOG
  fix: Fixed MinIO rules formatting
  feat: Adding support for MinIO (terraform-aws-modules#174)
@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 Nov 15, 2022
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