Skip to content

Commit

Permalink
feat: preserve sg during changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtoj committed Aug 3, 2023
1 parent 436b4ab commit 94d7156
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ module "security_group" {
source = "cloudposse/security-group/aws"
version = "2.2.0"

vpc_id = var.vpc_id
vpc_id = var.vpc_id
create_before_destroy = false
preserve_security_group_id = true

rules = [{
key = "gropu-egress"
Expand Down
6 changes: 4 additions & 2 deletions modules/teleport-node/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,10 @@ module "security_group" {
source = "cloudposse/security-group/aws"
version = "2.2.0"

vpc_id = local.vpc_id
allow_all_egress = true
vpc_id = local.vpc_id
create_before_destroy = false
preserve_security_group_id = true
allow_all_egress = true

rules = [{
key = "group"
Expand Down

0 comments on commit 94d7156

Please sign in to comment.