File tree 4 files changed +20
-0
lines changed
4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,10 @@ resource "aws_security_group" "cluster" {
125
125
{ " Name" = local.cluster_sg_name },
126
126
var. cluster_security_group_tags
127
127
)
128
+
129
+ lifecycle {
130
+ create_before_destroy = true
131
+ }
128
132
}
129
133
130
134
resource "aws_security_group_rule" "cluster" {
Original file line number Diff line number Diff line change @@ -372,6 +372,12 @@ resource "aws_security_group" "this" {
372
372
{ " Name" = local.security_group_name },
373
373
var. security_group_tags
374
374
)
375
+
376
+ # https://github.com/hashicorp/terraform-provider-aws/issues/2445
377
+ # https://github.com/hashicorp/terraform-provider-aws/issues/9692
378
+ lifecycle {
379
+ create_before_destroy = true
380
+ }
375
381
}
376
382
377
383
resource "aws_security_group_rule" "this" {
Original file line number Diff line number Diff line change @@ -458,6 +458,12 @@ resource "aws_security_group" "this" {
458
458
},
459
459
var. security_group_tags
460
460
)
461
+
462
+ # https://github.com/hashicorp/terraform-provider-aws/issues/2445
463
+ # https://github.com/hashicorp/terraform-provider-aws/issues/9692
464
+ lifecycle {
465
+ create_before_destroy = true
466
+ }
461
467
}
462
468
463
469
resource "aws_security_group_rule" "this" {
Original file line number Diff line number Diff line change @@ -161,6 +161,10 @@ resource "aws_security_group" "node" {
161
161
},
162
162
var.node_security_group_tags
163
163
)
164
+
165
+ lifecycle {
166
+ create_before_destroy = true
167
+ }
164
168
}
165
169
166
170
resource "aws_security_group_rule" "node" {
You can’t perform that action at this time.
0 commit comments