Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket pipeline - PHP to Elastic Beanstalk

Ben GP September 18, 2019

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

 

 

2 answers

0 votes
Ben GP September 24, 2019

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'

0 votes
Alexander Zhukov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 24, 2019

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.  

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events