diff --git a/builder/amazon/common/step_security_group.go b/builder/amazon/common/step_security_group.go index 7e4071370..a5032772b 100644 --- a/builder/amazon/common/step_security_group.go +++ b/builder/amazon/common/step_security_group.go @@ -45,7 +45,9 @@ func (s *StepSecurityGroup) Run(state multistep.StateBag) multistep.StepAction { port := s.CommConfig.Port() if port == 0 { - panic("port must be set to a non-zero value.") + if s.CommConfig.Type != "none" { + panic("port must be set to a non-zero value.") + } } // Create the group