I'm a bit at a loss. I'm using AWS Elastic Beanstalk Pipe with BitBucketi pipelines. Here's our pipeline, with minimal redaction and some simplification since this is a public forum.
image: node:6.9.4
pipelines:
branches:
master:
- step:
name: Build
caches:
- node
script: # Modify the commands below to build your repository.
- npm install
- API_URL=[redacted] npm run build
- mv dist dist
artifacts:
- dist
- step:
name: Zip
image: atlassian/default-image:2
script:
- apt-get install zip
- cd dist
- zip -r ../application-deploy.zip *
artifacts:
- application-deploy.zip
- step:
name: Deploy to Staging
deployment: staging
script:
- pipe: atlassian/aws-elasticbeanstalk-deploy:0.2.3
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: '[redacted]'
COMMAND: 'only-deploy'
VERSION_LABEL: 'ci-staging-${ENVIRONMENT_NAME}_${BITBUCKET_COMMIT:0:8}_YYYY-mm-dd_HHMMSS)'
ENVIRONMENT_NAME: '[redacted]'
ZIP_FILE: 'application-deploy.zip'
WAIT: 'true'
DEBUG: 'true'
Upon using this pipeline, it passes with a nice green checkmark.
However, the deployment never appears to happen! There's nothing uploaded in our application versions, there's no changes to the actual environment. BitBucket Pipes is showing success, but no deployment has happened.
What gives?
Hey @kenkinder ,
There is a typo in the example we have in our docs. Valid values for `COMMAND` are `deploy-only` and `upload-only` (default to `all`). We have a fix on its way: https://bitbucket.org/atlassian/aws-elasticbeanstalk-deploy/pull-requests/8!
According to your example (i.e. having only have one environment to deploy to) I would recommend not passing any command parameter (which would perform upload and deploy at the same time).
If you had more than one environment to deploy to, I would recommend using the COMMAND: `upload-only` in the ZIP step. And then using the `deploy-only` in subsequent deployment steps, to avoid uploading the file and generating a version each time per environment.
See an example with multiple environments here: https://bitbucket.org/bitbucketpipelines/example-aws-elasticbeanstalk-deploy/
Does it make sense?
Regards,
Raul
Hey @kenkinder ,
The fix is out! if you use the new version 0.2.5, you will now see that docs are fixed and the parameters will be validated in case there is wrong input.
Regards,
Raul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.