mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-11 21:11:32 +01:00
feat: Add create_before_destroy lifecycle hook to security groups created (#1985)
This commit is contained in:
@@ -372,6 +372,12 @@ resource "aws_security_group" "this" {
|
||||
{ "Name" = local.security_group_name },
|
||||
var.security_group_tags
|
||||
)
|
||||
|
||||
# https://github.com/hashicorp/terraform-provider-aws/issues/2445
|
||||
# https://github.com/hashicorp/terraform-provider-aws/issues/9692
|
||||
lifecycle {
|
||||
create_before_destroy = true
|
||||
}
|
||||
}
|
||||
|
||||
resource "aws_security_group_rule" "this" {
|
||||
|
||||
Reference in New Issue
Block a user