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: Add create_before_destroy lifecycle hook to security groups created #1985

Conversation

bryantbiggs
Copy link
Member

Description

  • Add create_before_destroy lifecycle hook to security groups created

Motivation and Context

  • This came up in testing how to remove the node group specific security group that is mostly unused by users. When trying to set create_security_group to false after it defaults to true and has been created, the security group is unable to detach and delete. Reading through the numerous issues, I am hopeful this might work for the autoscaling groups. If not, it should be in place regardless for when users re-name their security groups and they need to be re-created

Breaking Changes

  • No

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

@bryantbiggs bryantbiggs requested a review from antonbabenko April 4, 2022 13:37
@antonbabenko antonbabenko merged commit 6db89f8 into terraform-aws-modules:master Apr 4, 2022
antonbabenko pushed a commit that referenced this pull request Apr 4, 2022
## [18.19.0](v18.18.0...v18.19.0) (2022-04-04)

### Features

* Add `create_before_destroy` lifecycle hook to security groups created ([#1985](#1985)) ([6db89f8](6db89f8))
@antonbabenko
Copy link
Member

This PR is included in version 18.19.0 🎉

@bryantbiggs bryantbiggs deleted the feat/security-group-create-before-destroy branch April 4, 2022 14:36
spr-mweber3 pushed a commit to spring-media/terraform-aws-eks that referenced this pull request Apr 26, 2022
spr-mweber3 pushed a commit to spring-media/terraform-aws-eks that referenced this pull request Apr 26, 2022
## [18.19.0](terraform-aws-modules/terraform-aws-eks@v18.18.0...v18.19.0) (2022-04-04)

### Features

* Add `create_before_destroy` lifecycle hook to security groups created ([terraform-aws-modules#1985](terraform-aws-modules#1985)) ([6db89f8](terraform-aws-modules@6db89f8))
it-without-politics pushed a commit to it-without-politics/terraform-aws-eks that referenced this pull request May 23, 2022
it-without-politics pushed a commit to it-without-politics/terraform-aws-eks that referenced this pull request May 23, 2022
## [18.19.0](terraform-aws-modules/terraform-aws-eks@v18.18.0...v18.19.0) (2022-04-04)

### Features

* Add `create_before_destroy` lifecycle hook to security groups created ([terraform-aws-modules#1985](terraform-aws-modules#1985)) ([6db89f8](terraform-aws-modules@6db89f8))
baibailiha added a commit to baibailiha/terraform-aws-eks that referenced this pull request Sep 13, 2022
@github-actions
Copy link

github-actions bot commented Nov 9, 2022

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 9, 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.

2 participants