Sitelet https://github.com/aws/aws-cli/issues/1771
Skip to content

aws s3 cp errors when "-" stream to stdout option is used with a prefix #1771

Description

@davidwarshaw

aws-cli/1.10.1 Python/2.7.6 Darwin/14.3.0 botocore/1.3.23

When used with a prefix, "-" stream to stdout option errors with a 404, with or without --recursive flag.

> aws s3 ls s3://my-bucket/my-prefix --recursive
my-prefix/_SUCCESS
my-prefix/part-00000
my-prefix/part-00001
...
> aws s3 cp s3://my-bucket/my-prefix/part-00000 -
My data row 1
My data row 2
My data row 3
...
> aws s3 cp s3://my-bucket/my-prefix -
A client error (404) occurred when calling the HeadObject operation: Not Found
> aws s3 cp s3://my-bucket/my-prefix - --recursive
A client error (404) occurred when calling the HeadObject operation: Not Found

If this use of the option is not allowed, perhaps the documentation should be updated to reflect.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions