I can't seem to find a command to copy an entire folder and its contents from an s3 bucket to my ec2 instance.
I tried the following command:
aws s3 cp s3://${AuthorizedKeyBucketName}/datasets/ .
Here, datasets is a folder that exists in the root of my s3 bucket, and it has nested folders within itself as well. When I try to run the command, I get HeadObject error, no such object.