14

Why might I be seeing this error after I run git aws.push?

remote: error: Unable to deploy application version: No Environment found for EnvironmentName = 'reco-api-env'.

When I grep my flask app's directory for EnvironmentName, I see this:

./.elasticbeanstalk/config:6:EnvironmentName=name-env
./.git/AWSDevTools/aws/elastic_beanstalk_config.rb:36:      :environment_name => "EnvironmentName",
Rose Perrone
  • 61,572
  • 58
  • 208
  • 243

4 Answers4

6

I had similar symptoms when I manually updated default_region from us-west-2 to us-west-1. Reverting back fixed the issue.

Zorayr
  • 23,770
  • 8
  • 136
  • 129
5

I suspect you missed a step in the process. You need to use eb start before doing git aws.push.

tedder42
  • 23,519
  • 13
  • 86
  • 102
2

I was using eb create to setup a new environment where the name differed from what I had started with in /.elasticbeanstalk/config.yml

Once I updated the environment reference to the one one I meant to target, eb commands started working as expected.

rainabba
  • 3,804
  • 35
  • 35
2

I had this issue too. For me, it was because I had outdated credentials in my ~/.aws/config file. Fixing that solved the problem.

Tyson Cadenhead
  • 352
  • 3
  • 8