Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using space inside parameter #16

Closed
fnzbj7 opened this issue Apr 10, 2021 · 2 comments
Closed

Using space inside parameter #16

fnzbj7 opened this issue Apr 10, 2021 · 2 comments
Labels

Comments

@fnzbj7
Copy link

fnzbj7 commented Apr 10, 2021

I tried to upload an image to S3 and set the cache-control to "public, max-age=31536000"
My command was something like this:

aws.command('s3api put-object --bucketb --key pic.png ' +
'--body f:\\pic.png ' +
'--acl public-read --content-type image/png --cache-control "public, max-age=31536000"')

But i got back error with message

Unknown options: max-age=31536000"

The documentetion for the aws-cli can be found here!

It says if you want to use space between the parameter, you can use quotes

@mattqs
Copy link
Contributor

mattqs commented Apr 10, 2021

The reason is again:

[...command.split(' ')]
introduced by commit
1d0525a#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80

@69

I will fix and publish new release.

@mattqs
Copy link
Contributor

mattqs commented Apr 11, 2021

Fixed in https://github.com/Quobject/aws-cli-js/releases/tag/2.2.2

@mattqs mattqs closed this as completed Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants