Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Deploying a nodejs app to aws elastic beanstalk fails.

bellow the error message :

An error occurred (InvalidParameterValue) when calling the UpdateEnvironment operation: No Environment found for EnvironmentName = 'prod_env'.

knowing that prod_env is my application's environment in aws elastic beanstalk.

 

 

2 answers

0 votes

@Adelphe_MBATCHI  hello, thanks for reporting.

 

Can you please share details of logs if possible and the part of the pipeline where it has failed?

There may be different reasons of failure like such some tiny mistakes in syntax, usage or sth else

bitbucket-pipelines.yml

image: node:10.20.1
pipelines:
default:
- step:
name: "Build and Test"
caches:
- node
script:
- npm install
- apt-get update && apt-get install -y
- apt-get install zip
- zip application.zip index.js package.json
services:
- mongo
artifacts:
- application.zip
- step:
name: "Deploy to Production"
deployment: 'Production'
script:
- pipe: atlassian/aws-elasticbeanstalk-deploy:0.6.4
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: 'us-east-1'
APPLICATION_NAME: 'cloudhse'
S3_BUCKET: 'elasticbeanstalk-us-east-1-307150017281'
ZIP_FILE: 'application.zip'
VERSION_LABEL: 'CloudHSE-${BITBUCKET_BUILD_NUMBER}'
ENVIRONMENT_NAME: 'prod_env'
definitions:
services:
mongo:
image: mongo
Like Ian likes this

build logs :

✔ Application version CloudHSE-31 successfully created in Elastic Beanstalk.

INFO: Updating environment in Elastic Beanstalk...

An error occurred (InvalidParameterValue) when calling the UpdateEnvironment operation: No Environment found for EnvironmentName = 'prod_env'.

Hello, @Adelphe_MBATCHI  !

Could you try to execute aws cli command update-envronment to debug it?

Or just to check it if aws should recognize it:

 

aws elasticbeanstalk describe-environments --application-name "<app_name>" --environment-names "<env_name>" --debug

 If it succeed then you can debug update command.

Looking forward hearing back from you.

Cheers, Galyna

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,320 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you