Skip to content

Using space inside parameter #16

@fnzbj7

Description

@fnzbj7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions