Skip to content

Commit 94d7156

Browse files
committed
feat: preserve sg during changes
1 parent 436b4ab commit 94d7156

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,9 @@ module "security_group" {
381381
source = "cloudposse/security-group/aws"
382382
version = "2.2.0"
383383

384-
vpc_id = var.vpc_id
384+
vpc_id = var.vpc_id
385+
create_before_destroy = false
386+
preserve_security_group_id = true
385387

386388
rules = [{
387389
key = "gropu-egress"

modules/teleport-node/main.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,10 @@ module "security_group" {
406406
source = "cloudposse/security-group/aws"
407407
version = "2.2.0"
408408

409-
vpc_id = local.vpc_id
410-
allow_all_egress = true
409+
vpc_id = local.vpc_id
410+
create_before_destroy = false
411+
preserve_security_group_id = true
412+
allow_all_egress = true
411413

412414
rules = [{
413415
key = "group"

0 commit comments

Comments
 (0)