I'm trying to get Bitbucket pipelines to work but I can't get my bitbucket-pipelines.yml file correct.
We need to be able to do two things.
1) Push the code to Elastic Beanstalk
2) Be able to setup a DB connection which is currently held in a config php file but ignored on git pull.
This is my current file.
image: atlassian/default-image:2
pipelines:
default:
- step:
script:
trigger: manual
- application.zip
- step:
name: "Deploy to Production"
# Track production environments builds using deployments.
deployment: production
# script:
- pipe: atlassian/aws-elasticbeanstalk-deploy:0.5.0
variables:
AWS_ACCESS_KEY_ID: '$AWS_ACCESS_KEY_ID'
AWS_SECRET_ACCESS_KEY: '$AWS_SECRET_ACCESS_KEY'
AWS_DEFAULT_REGION: 'Sydney'
APPLICATION_NAME: 'application'
ENVIRONMENT_NAME: 'application-env '
ZIP_FILE: 'application.zip
Hi Alexander, Thanks for the reply.
Our understanding of this process and the documentation is a bit light to be honest. We are trying to work off the example files from AWS.
Am open to suggestions or guidance.
Should we add the following?
S3_BUCKET: 'elasticbeanstalk-ap-southeast-xxxxxxx’
VERSION_LABEL: 'deploy-$BITBUCKET_BUILD_NUMBER-multiple'
Hey @Ben GP , could you describe exactly how do you build the application.zip, as fit's not clear to me when I look at your configuration.
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.