I am beginner to GoLang and trying to deploy a GoLang simple application to AWS Elastic Beanstalk.
I Created a new application on AWS with t2.micro instance.
The url for my github repo is https://github.com/awaisss/goapp6.
I set my aws credentials by setting up “AWS_CREDENTIAL_FILE” environment variable.
The entire my source code is present “application.go” file.
The results of “eb init” command prompts me to select the “AWS Region” and “application”, while
"eb deploy" executes without errors.
But, as the deployment finishes my AWS server health goes to degraded, and i get “Bad Gateway” while
running application in browser.
I searched a lot of stuff to explore what the issue is, but failed. Please somebody help me to figure out this problem and tell me workflow of deploying a simple GoLang App to AWS Elastic Beanstalk.