[SOLVED] No Application Version named 'myapp-1' found.

Filip_Niko June 14, 2019

Hello,

I am having issues with deploying my app to AWS Elastic Beanstalk.

I receive a very weird error because I have an application named "fe-landing-page" created, but I do not know where the weird suffix appeared.

An error occurred (InvalidParameterValue) when calling the UpdateEnvironment operation: No Application Version named 'fe-landing-page-9-1dfe0f03' found.

My bitbucket-pipelines.yml file:

pipelines:
default:
- step:
name: "Build image"
script:
- docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWORD
- docker build -t name/fe-landing-page -f Dockerfile.dev .
- docker push name/fe-landing-page
services:
- docker
caches:
- docker
- step:
name: "Deploy to Production"
image:
name: name/fe-landing-page:latest
username: $DOCKER_HUB_USER
password: $DOCKER_HUB_PASSWORD
email: $DOCKER_HUB_EMAIL
script:
- pipe: atlassian/aws-elasticbeanstalk-deploy:0.3.0
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_KEY
AWS_DEFAULT_REGION: 'eu-west-1'
APPLICATION_NAME: 'fe-landing-page'
ENVIRONMENT_NAME: 'FeLandingPage-env'
S3_BUCKET: 'elasticbeanstalk-eu-west-1-748230814657'
COMMAND: 'deploy-only'

I double checked and the name of the app is the same as in the AWS.

Do you have any advice? Maybe I miss something...

2 comments

Filip_Niko June 18, 2019

Solved not using 

              COMMAND: 'deploy-only'

 Because this option will deploy to already existing app version and not create a new one!

Anthony Le Courric September 23, 2019

Hi Filip,

What did you put for the ZIP_FILE?

Filip_Niko September 23, 2019

Hi Anthony,

I cannot remember bcs I switched to Gitlab :)

 

But I suppose I did not used ZIP_FILE.

 

Thx.

Ricardo García February 26, 2022

Sorry but this is not solved. 

what do I have to put in the ZIP_FILE if I only need to deploy a docker?

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events