Hello,
I'm trying to upload a zip file from bitbucket pipeline to AWS S3.
The step is in bitbucket-pipelines.yml like below:
- step: #dev-int-module-sam-s3bucket
name: Deploy to DevEnv
image: amazon/aws-cli
script:
- echo $POC_DEPLOY_S3_BUCKET
- aws s3 cp dev-int-module-sam.zip s3://$POC_DEPLOY_S3_BUCKET/dev-int-module-sam.zip
My pipeline failed at this step and the output:
+ echo $POC_DEPLOY_S3_BUCKET<br>dev-int-module-sam-s3bucket
+ aws s3 cp dev-int-module-sam.zip s3://$POC_DEPLOY_S3_BUCKET/dev-int-module-sam.zip
Unknown options: /dev-int-module-sam.zip
The echo returns the right value but cannot use it in "aws s3 cp" command, It's weird.
Other variables works well, such as AWS_ACCESS_KEY_ID or AWS_SECRET_ACCESS_KEY.
Many thanks for any suggestion.
Thanks,
NAT