Elasticbeanstalk deployment



I’m trying to deploy my application to aws elasticbeanstalk by following the example here:


I created a separate IAM user that has full access to ElasticBeanStalk. I verified deployment by running the commands from my local machine. When I tried to run the deploy script, I run into an error when I run this command:

aws elasticbeanstalk update-environment --environment-name $SERVICE_NAME-staging --version-label $SHA1

Here is the error:

An error occurred (InvalidParameterValue) when calling the UpdateEnvironment operation: No Environment found for EnvironmentName = 'eb-outlet-service-staging'.

I verified that the credentials are correctly added to the proejct settings. As I mentioned, I am able to manually run this command to deploy this version from my local machine (with the same credentials).

Any help is appreciated!


Might be worth checking that your .elasticbeanstalk/config.yml is in source control.

I had to add this to my .gitignore to stop ignoring the file*: