I have a simple pipelines definition that uploads all files in the repo (its a repo of images) to S3 upon merge. Here is the definition:
------ indentation is off below.... ---------
image: atlassian/pipelines-awscli
pipelines:
branches:
develop:
- step:
name: Deploy develop branch to S3 bucket idp-ui-cdn-dev script:
- export AWS_SECRET_ACCESS_KEY=$S3APIUSER_ACCESSS_SECRET_KEY
- export AWS_ACCESS_KEY_ID=$S3APIUSER_ACCESS_KEY_ID
- aws s3 sync --delete . s3://my-s3-bucket-for-images
------
The pipeline kicks off just fine and syncs a bunch (100s) of files to S3 then reports 'failed' and stops. It appears to stop at the same file each time.
Any insights would be helpful.
How do I trouble shoot/debug this?
Thanks
Hi Ken,
Is the 'Failed" you're referencing from the logs of the AWS s3 sync command? Or elsewhere in the Pipelines UI?
You can start by enabling debug mode on the command. The following should do the trick.
aws --debug s3 sync --delete . s3://my-s3-bucket-for-images
After that you should hopefully have some more useful logs to continue debugging with. Feel free to post them back here. :)
Thanks,
Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.