Skip to content

Commit

Permalink
Bug fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
hboisgibault committed Oct 28, 2021
1 parent ef01a28 commit f879b96
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions autoscaling.tf
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ resource "aws_autoscaling_group" "main_asg" {
ignore_changes = [desired_capacity]
}

tag {
key = "Name"
value = var.environment_name
propagate_at_launch = true
}

tag {
key = "AmazonECSManaged"
value = ""
Expand Down
4 changes: 2 additions & 2 deletions security_group.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ data "aws_security_group" "target_sg" {
}

resource "aws_security_group_rule" "ingress_traffic" {
for_each = data.aws_security_group.target_sg
count = length(data.aws_security_group.target_sg)
type = "ingress"
from_port = 0
to_port = 65535
protocol = "tcp"
source_security_group_id = aws_security_group.main_sg.id
prefix_list_ids = []
security_group_id = each.id
security_group_id = data.aws_security_group.target_sg[count.index].id
}

0 comments on commit f879b96

Please sign in to comment.