I use bitbucket pipeline to deploy node js sample code to the elastic beanstalk, but I always face a problem "calling the CreateApplicationVersion operation: No Application named MYAPP" so I have that elastic beanstalk app in my AWS account.
Can you please give me a clear document on how to deploy code using bitbucket pipeline on elastic beanstalk for node js app.
I use bitbucket-pipelines.yml:
image: atlassian/default-image:2
pipelines:
default:
- step:
name: "Build and Test"
script:
- zip application.zip Dockerfile application.py cron.yaml Dockerrun.aws.json
artifacts:
- application.zip
- step:
name: "Deploy to Production" deployment: production
script:
- pipe:
atlassian/aws-elasticbeanstalk-deploy:0.2.5
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
APPLICATION_NAME: $APPLICATION_NAME
ZIP_FILE: "application.zip"
S3_BUCKET: $S3_BUCKET
VERSION_LABEL: "deploy-$BITBUCKET_BUILD_NUMBER-O"
ENVIRONMENT_NAME: $APPLICATION_ENVIRONMENT