@@ -19,8 +19,6 @@ const (
1919 LoadBalancedWebServiceType = "Load Balanced Web Service"
2020 // BackendServiceType is a service that cannot be accessed from the internet but can be reached from other services.
2121 BackendServiceType = "Backend Service"
22-
23- defaultSidecarPort = "80"
2422)
2523
2624// ServiceTypes are the supported service manifest types.
@@ -82,7 +80,7 @@ func (s *Sidecar) SidecarsOpts() ([]*template.SidecarOpts, error) {
8280 Image : config .Image ,
8381 Port : port ,
8482 Protocol : protocol ,
85- CredParam : config .CredParam ,
83+ CredsParam : config .CredsParam ,
8684 })
8785 }
8886 return sidecars , nil
@@ -92,7 +90,7 @@ func (s *Sidecar) SidecarsOpts() ([]*template.SidecarOpts, error) {
9290type SidecarConfig struct {
9391 Port * string `yaml:"port"`
9492 Image * string `yaml:"image"`
95- CredParam * string `yaml:"credentialsParameter"`
93+ CredsParam * string `yaml:"credentialsParameter"`
9694}
9795
9896// TaskConfig represents the resource boundaries and environment variables for the containers in the task.
@@ -170,8 +168,7 @@ func intpcopy(v *int) *int {
170168// Valid sidecar portMapping example: 2000/udp, or 2000 (default to be tcp).
171169func parsePortMapping (s * string ) (port * string , protocol * string , err error ) {
172170 if s == nil {
173- // default port for sidecar container to be 80.
174- return aws .String (defaultSidecarPort ), nil , nil
171+ return nil , nil , nil
175172 }
176173 portProtocol := strings .Split (* s , "/" )
177174 switch len (portProtocol ) {
@@ -180,6 +177,6 @@ func parsePortMapping(s *string) (port *string, protocol *string, err error) {
180177 case 2 :
181178 return aws .String (portProtocol [0 ]), aws .String (portProtocol [1 ]), nil
182179 default :
183- return nil , nil , fmt .Errorf ("cannot parse %s" , * s )
180+ return nil , nil , fmt .Errorf ("cannot parse port mapping from %s" , * s )
184181 }
185182}
0 commit comments