Skip to content

Commit

Permalink
Do not re-read VPC ID because its useless
Browse files Browse the repository at this point in the history
  • Loading branch information
sugdyzhekov authored Nov 17, 2022
1 parent e6f2a6c commit de0e907
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion security_group.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ resource "aws_security_group" "ecs_nodes" {
name = "ECS nodes for ${local.name}"
vpc_id = local.vpc_id
tags = local.tags

lifecycle {
ignore_changes = [
vpc_id,
]
}
}

resource "aws_security_group_rule" "ingress" {
Expand All @@ -20,4 +26,4 @@ resource "aws_security_group_rule" "egress" {
cidr_blocks = ["0.0.0.0/0"]
security_group_id = aws_security_group.ecs_nodes.id
type = "egress"
}
}

0 comments on commit de0e907

Please # to comment.