Quick Actions
aws s3 cp
Description
Copies a local file or S3 object to another location.
Command
aws s3 cp
Examples
Upload a file to an S3 bucket
aws s3 cp my-local-file.txt s3://my-bucket/
Download an object from an S3 bucket
aws s3 cp s3://my-bucket/data.csv .
Recursively copy a local directory to S3
aws s3 cp ./my-app s3://my-bucket/my-app --recursive
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
<LocalPath> <S3Uri> |
string | No | Copy a local file to S3. |
<S3Uri> <LocalPath> |
string | No | Copy an S3 object to a local file. |
<S3Uri> <S3Uri> |
string | No | Copy an S3 object to another S3 location. |
--recursive |
string | No | Recursively copies directories. |
Command Info
Category:
S3
Type:
Aws
Views:
14
Status:
Active
Tags
aws
s3
storage
copy
upload
download