You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi Team,
This is venkat, I am using bitbucket pipeline for CI/CD after I ran the following "bitbucket-pipeline.yml" configuration file. my code is upload to s3 bucket but. from s3 bucket code using AWS deploy agent it is not deploying into EC2.
it's failing because the appspec.yml file is not in s3 bucket.
I have attached the build link please check it. I have to zip it total repository can you plz make change and reply.
https://bitbucket.org/rao999/ocs_admin.g/addon/pipelines/home#!/results/22
And I have attached the screenshot of my bit bucket repository structure here i want to
---
image: node:10.15.0
pipelines:
branches:
master:
- step:
name: "Build"
script:
- "apt-get update -y"
- "cd admin/front-end/"
- "npm install"
- CI=false
- "npm run build"
- cd ..
- apt-get install -y zip
- "zip -r myapp.zip *"
artifacts:
- admin/myapp.zip
- step:
name: Upload to S3
script:
- pipe: atlassian/aws-code-deploy:0.2.3
variables:
AWS_DEFAULT_REGION: 'ap-southeast-2'
AWS_ACCESS_KEY_ID: 'AKIA5Q2RJR2HWL2BGQMZ'
AWS_SECRET_ACCESS_KEY: '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'
COMMAND: 'upload'
APPLICATION_NAME: 'variable-test-application'
ZIP_FILE: 'admin/myapp.zip'
S3_BUCKET: 'testcodedeploybucket1'
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-2'
AWS_ACCESS_KEY_ID: 'AKIA5Q2RJR2HWL2BGQMZ'
AWS_SECRET_ACCESS_KEY: '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'
COMMAND: 'deploy'
APPLICATION_NAME: 'variable-test-application'
DEPLOYMENT_GROUP: 'DG77'
S3_BUCKET: 'testcodedeploybucket1'
IGNORE_APPLICATION_STOP_FAILURES: 'true'
FILE_EXISTS_BEHAVIOR: 'OVERWRITE'
WAIT: 'true'
VERSION_LABEL: 'my-app-1.0.0'