It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

Bitbucket Pipeline Code deployment has failed.

Hi Team,

I have wrote the Bit bucket Pipeline , But It's uploaded to S3 after that while deploying to EC2 instance it's got failed and I have attached the error screenshots. Can you please reply ASAP with solution.

Bit-bucket Pipeline Script :-

image: node:10.15.0

pipelines:
default:
- step:
name: Build
script:
- apt-get update -y
- cd admin/front-end/
- npm install
- CI=false
- npm run build
- apt-get install -y zip
- zip -r myapp.zip *
artifacts:
- admin/front-end/myapp.zip

- step:
name: Upload to S3
script:
- pipe: atlassian/aws-code-deploy:0.2.3
variables:
AWS_DEFAULT_REGION: 'ap-southeast-1'
AWS_ACCESS_KEY_ID: 'AKIAS2IMCQIEEY3AQA7Q'
AWS_SECRET_ACCESS_KEY: '2aRhX5cctbGyjNobEGV83cppuU9SzDJNtg2ILtdN'
COMMAND: 'upload'
APPLICATION_NAME: 'SampleApplication'
ZIP_FILE: 'admin/front-end/myapp.zip'
S3_BUCKET: 'codedeployap'
VERSION_LABEL: 'my-app-1.0.0'

- step:
name: Deploy with CodeDeploy
script:
- pipe: atlassian/aws-code-deploy:0.2.3
variables:
AWS_DEFAULT_REGION: 'ap-southeast-1'
AWS_ACCESS_KEY_ID: 'AKIAS2IMCQIEEY3AQA7Q'
AWS_SECRET_ACCESS_KEY: '2aRhX5cctbGyjNobEGV83cppuU9SzDJNtg2ILtdN'
COMMAND: 'deploy'
APPLICATION_NAME: 'SampleApplication'
DEPLOYMENT_GROUP: 'DG7'
WAIT: 'true'
S3_BUCKET: 'codedeployap'
VERSION_LABEL: 'my-app-1.0.0'

 

Error Screen Shots:-

Capture0.PNGCapture01.PNGCapture02.PNG

 

Regards,

Venkat

+91 9052325074

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,603 views 0 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you