Wed Sep 15 2021·1 min read
Photo by Daniel Vogel
The reason the "Following Arguments are Required - Paths" error occurs in AWS
CLI is when the paths argument is not provided to the
aws s3 cp command.
In order to solve the "Following Arguments are Required - Paths" error, set
the path argument in the call to
aws s3 cp.
To copy local files to an S3 bucket use the following syntax:
aws s3 cp my-file.txt s3://my-bucket/my-file.txt
When copying an S3 object to a local file, use the following syntax:
aws s3 cp s3://bucket-name/my-file.txt my-file.txt
When copying an S3 object from one bucket to another use the following syntax:
aws s3 cp s3://source-bucket/file.ext s3://destination-bucket/file.ext
For more examples on the
aws s3 cp command, check out the examples section of
aws s3 cpcommand keep in mind that the CLI expects a
destination, so a total of 2 paths should be provided.
I'll send you 1 email a week with links to all of the articles I've written that week