aws s3 cpIT technician command center
AWS CLI · Amazon Web Services

aws s3 cp

Copy a file to S3.

Copy-ready commandaws s3 cp
aws s3 cp backup.zip s3://my-bucket/backups/
Production warning

Start, stop, reboot, sync --delete, and write operations can affect production resources.

Requirements and permissions

Requirements
AWS CLI v2
Permissions
AWS IAM permissions vary
Last reviewed
2026-07-31

Examples

Basic example

Copy a file to S3.

aws s3 cp backup.zip s3://my-bucket/backups/

Common errors

Command not found

Confirm AWS CLI v2 is installed and available in your current shell.