Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS No Environment found for EnvironmentName = 'name-env'

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",
like image 681
Rose Perrone Avatar asked Jul 18 '13 02:07

Rose Perrone


People also ask

What is the AWS environment name?

An AWS Elastic Beanstalk environment is a collection of AWS resources running an application version. You can deploy multiple environments when you need to run multiple versions of an application.

How do I find my Beanstalk environment ID?

You could run the AWS CLI: aws ec2 describe-tags to get the environment name. The tag keys would be: elasticbeanstalk:environment-id.

How do I change my environment name on Elastic Beanstalk?

Open the Elastic Beanstalk console , and in the Regions list, select your AWS Region. In the navigation pane, choose Environments, and then choose the name of your environment from the list.

What is ENV Yaml?

env. yaml file uses environment variables to centralize the management of build and deploy actions across all of your environments, including Pro Staging and Production. To configure unique actions in each environment, you must modify this file in each environment.


2 Answers

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

like image 63
Zorayr Avatar answered Sep 28 '22 06:09

Zorayr


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

like image 32
tedder42 Avatar answered Sep 28 '22 04:09

tedder42