From 0972776e6d469113570c84a2fa1f4c4c35919710 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Tue, 21 Apr 2020 14:48:31 +0200 Subject: [PATCH] Ingress description to include service being exposed Signed-off-by: Nicolas De Loof --- ecs/pkg/amazon/cloudformation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecs/pkg/amazon/cloudformation.go b/ecs/pkg/amazon/cloudformation.go index 0b3b0bc41..1865aa820 100644 --- a/ecs/pkg/amazon/cloudformation.go +++ b/ecs/pkg/amazon/cloudformation.go @@ -30,7 +30,7 @@ func (c client) Convert(project *compose.Project, loadBalancerArn *string) (*clo for _, port := range service.Ports { ingresses = append(ingresses, ec2.SecurityGroup_Ingress{ CidrIp: "0.0.0.0/0", - Description: fmt.Sprintf("%d/%s", port.Target, port.Protocol), + Description: fmt.Sprintf("%s:%d/%s", service.Name, port.Target, port.Protocol), FromPort: int(port.Target), IpProtocol: strings.ToUpper(port.Protocol), ToPort: int(port.Target),