Skip to content

Commit

Permalink
use source id for self-referential sg
Browse files Browse the repository at this point in the history
  • Loading branch information
roncitrus committed Nov 29, 2024
1 parent 928c7c2 commit 6a7dcbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/environments/cdpt-chaps/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ resource "aws_security_group" "chaps_combined_ecs_service" {
from_port = 80
to_port = 8080
protocol = "tcp"
security_groups = [aws_security_group.chaps_combined_ecs_service.id] # Refers to itself to allow traffic within the same task
source_security_group_id = aws_security_group.chaps_combined_ecs_service.id # Refers to itself to allow traffic within the same task
}

# Allow all outbound traffic for both containers
Expand Down

0 comments on commit 6a7dcbd

Please sign in to comment.