CalcSnippets Search
Cloud 1 min read

`aws s3 cp` Is the Command You Use When Files Need to Move Between Your Machine and S3 Without Turning the Task Into a Console-Clicking Ceremony

A practical guide to `aws s3 cp` for copying files to and from Amazon S3 directly from the terminal when build artifacts, logs, exports, or backups need to move quickly.

Why this command matters: the web console is fine until you need repeatability, shell history, or one command that can be pasted into a runbook.

If you need to push a build artifact, pull a log bundle, or move a backup between your machine and S3, aws s3 cp is the straight-line tool for the job.

The command

Upload a file:

aws s3 cp ./artifact.zip s3://my-bucket/releases/artifact.zip

Download a file:

aws s3 cp s3://my-bucket/logs/app.log ./app.log

That alone covers a lot of practical cloud file movement.

Why it helps

It is useful when:

  1. a deploy artifact needs to be staged
  2. logs or exports need to be pulled locally
  3. a backup should be uploaded from a script
  4. you want repeatable transfer commands instead of manual console work

The terminal history becomes operational memory, which is often better than vague recollection of which bucket path you clicked through last time.

Final recommendation

When files need to move to or from S3 and the task should stay scriptable, use aws s3 cp. It is still one of the most practical AWS CLI commands for everyday engineering work.

Sources

Keep reading

Related guides