My First two steps of pipelines are successful but when I am trying to upload to S3 bucket using the pipe it says the user provided path does not exits .
I have properly created Repo variable and also searched on ur documentation , I have used the artifact as well .
I am trying to upload to S3 and deploy to EC2.
Below is my bitbucket-pipelines.yml
image: node:12.18.4
pipelines:
branches:
feature/develop:
- step:
name: Installation
caches:
- node
script:
- npm install
artifacts:
- node_modules/** # Save modules for next steps
- step:
name: Build
script:
- npm run build:production
artifacts:
- dist/** # Save build for next steps
- step:
name: upload
script:
- pipe: atlassian/aws-code-deploy:0.5.3
variables:
APPLICATION_NAME: $APPLICATION_NAME
S3_BUCKET: $S3_BUCKET
COMMAND: 'upload'
ZIP_FILE: 'myapp.zip'
VERSION_LABEL: 'my-app-1.0.0'
- step:
name: deploy
script:
- pipe: atlassian/aws-code-deploy:0.5.3
variables:
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
APPLICATION_NAME: $APPLICATION_NAME
DEPLOYMENT_GROUP: $DEPLOYMENT_GROUP
S3_BUCKET: $S3_BUCKET
COMMAND: 'deploy'
WAIT: 'true'
VERSION_LABEL: 'my-app-1.0.0'
IGNORE_APPLICATION_STOP_FAILURES: 'true'
FILE_EXISTS_BEHAVIOR: 'OVERWRITE'
Hi Deepak and welcome to the community!
Looking at your bitbucket-pipelines.yml file, I don't see any file myapp.zip being generated, which I believe is the reason for the error that you are getting.
In order for this to work, you will need to:
Please feel free to let me know if this helps and if you have any other questions.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.