Eb create command Error: Unknown (null) port for listener
0
I'm trying to run eb create for my eb environment and I can't seem to solve the error that keeps popping up: Unknown (null) port for listener. I run the eb create command, enter the environment name, CNAME, choose network load balancer, and decline the spot fleet option. After a few seconds of attempting to create the environment, the process exits with the error mentioned.
Here is my elb config file in my .ebextensions folder:
Turns out the issue wasn't even in this config file, it was in the config file for the instance. I had a security group being defined there and I forgot to add the ToPort parameter.