I am trying to run an aws s3 cp using the aws-s3 orb.
version: 2.1
orbs:
aws-cli: circleci/aws-cli@4.1.2
aws-s3: circleci/aws-s3@4.0.0
...
jobs:
deploy:
docker:
- image: cimg/base:current
steps:
- checkout
- aws-cli/setup:
role_arn: arn:aws:iam::123456789:role/circleci-role
- aws-s3/copy:
arguments: |
--recursive \
--exclude ".git*" \
--exclude ".circleci*" \
--exclude "README.md"
from: ./
to: s3://www.abc.com
When running it with the --exclude arguments, I get the following error:
+ aws s3 cp ./ s3://www.abc.com --profile default --recursive '\
--exclude' '"*.git*"' '\
--exclude' '"*.circleci*"' '\
--exclude' '"*README.md"'
Unknown options: \
--exclude,"*.git*",\
--exclude,"*.circleci*",\
--exclude,"*README.md"
Exited with code exit status 252
Any idea what I am doing wrong? When I leave the --exclude arguments out, it runs fine.