From 33dbe4d768f52ad313206bfdba0dfdb3ba2f084c Mon Sep 17 00:00:00 2001 From: "Han Verstraete (OpenFaaS Ltd)" Date: Fri, 1 Sep 2023 16:19:19 +0200 Subject: [PATCH] Fix regression for adding extra ports to EC2 security group Extra ports where not added to the security group due to a regression introduced in ac3b8b4 Signed-off-by: Han Verstraete (OpenFaaS Ltd) --- provision/ec2.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/provision/ec2.go b/provision/ec2.go index 9c8bb9b..8d69ed2 100644 --- a/provision/ec2.go +++ b/provision/ec2.go @@ -270,6 +270,8 @@ func (p *EC2Provisioner) createEC2SecurityGroup(vpcID string, controlPort int, o if len(extraPorts) > 0 { // disable high port range if extra ports are specified highPortRange = []int{} + + ports = append(ports, extraPorts...) } groupName := "inlets-" + uuid.New().String()