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 autoscaling group tags -> tag to support v4 of AWS provider #1866

Merged
merged 5 commits into from
Feb 15, 2022

Conversation

bryantbiggs
Copy link
Member

@bryantbiggs bryantbiggs commented Feb 10, 2022

Description

  • Update autoscaling group tags -> tag to support v4 of AWS provider. This is now a dynamic tag block and the current functionality has been preserved through a map comprehension statement. The variable var.propagate_tags has been removed as part of this change and users should pass any tags through the normal var.tags variable now

Motivation and Context

Breaking Changes

  • var.propagate_tags is removed and var.tags is used in its place so I am (controversially) electing to not mark this as a breaking change (does not affect a significant population of users and there is a clear path to mitigate without state changes or downtime)

How Has This Been Tested?

  • I have tested and validated these changes using one or more of the provided examples/* projects

@@ -378,6 +406,15 @@ resource "aws_autoscaling_group" "this" {
}
}

dynamic "tag" {
for_each = { for tag in local.asg_tags : "${tag.key}-${tag.value}" => tag }
Copy link
Member

Choose a reason for hiding this comment

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

Same comment as in another PR - terraform-aws-modules/terraform-aws-autoscaling#179

@bryantbiggs bryantbiggs marked this pull request as draft February 10, 2022 19:57
@bryantbiggs bryantbiggs marked this pull request as ready for review February 15, 2022 12:58
@antonbabenko antonbabenko merged commit 74ad4b0 into terraform-aws-modules:master Feb 15, 2022
@antonbabenko
Copy link
Member

It is so much cleaner now! 🚀

antonbabenko pushed a commit that referenced this pull request Feb 15, 2022
### [18.6.1](v18.6.0...v18.6.1) (2022-02-15)

### Bug Fixes

* Update autoscaling group `tags` -> `tag` to support v4 of AWS provider ([#1866](#1866)) ([74ad4b0](74ad4b0))
@antonbabenko
Copy link
Member

This PR is included in version 18.6.1 🎉

@bryantbiggs bryantbiggs deleted the fix/v4-support branch February 15, 2022 13:02
baibailiha added a commit to baibailiha/terraform-aws-eks that referenced this pull request Sep 13, 2022
### [18.6.1](terraform-aws-modules/terraform-aws-eks@v18.6.0...v18.6.1) (2022-02-15)

### Bug Fixes

* Update autoscaling group `tags` -> `tag` to support v4 of AWS provider ([#1866](terraform-aws-modules/terraform-aws-eks#1866)) ([1892b1e](terraform-aws-modules/terraform-aws-eks@1892b1e))
@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 10, 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.

Deployment of EKS managed node group gives deprecation warning from self-managed-node-group
2 participants