MultiCloud Classroom notes 05/Sep/2026

Aws cli

If want to create resource first it will start with aws

aws [options] <command> <subcommand> [parameters]

options

  • s3
  • s3api
  • s3control
  • s3files
  • s3outposts
  • s3tables
  • s3vectors

ex:

aws [options] <command> <subcommand> [parameters]

aws s3api  create-bucket --bucket amzn-qt-demo-multicloud --region us-east-1 --debug

aws s3 mb s3://amzn-s3-demo-bucket

copy files

  1. copy files from my local to s3
# copt files only
aws s3 cp <local path> s3://<bucketname>/
 aws s3 cp .\demo.md s3://amzn-qt-demo-multicloud/

# copy files and folders
aws s3 cp <local path> s3://<bucketname>/  --recursive
aws s3 cp .\dev s3://amzn-qt-demo-multicloud/ --recursive

aws s3 cp .\qa s3://amzn-qt-demo-multicloud/ --recursive
aws s3 cp qa s3://amzn-qt-demo-multicloud/qa/ --recursive

copy files from to local

aws s3 cp s3://amzn-qt-demo-multicloud/demo.md . aws s3 cp s3://amzn-qt-demo-multicloud/qa/ . –recursive

aws s3 sync

mkdir s3-sync
# download files from s3 to mylocal
aws s3 sync s3://amzn-qt-demo-multicloud ./s3-sync 

# upload my local files to s3
aws s3 sync .\s3-sync s3://amzn-qt-demo-multicloud  

## delete files
aws s3 rm s3://amzn-qt-demo-multicloud/demo/demo-sync/readme.md
delete: s3://amzn-qt-demo-multicloud/demo/demo-sync/readme.md
## delete files and folders
aws s3 rm s3://amzn-qt-demo-multicloud/dev  --recursive

## s3 api cmds
```bash
aws s3api delete-object --bucket amzn-qt-demo-multicloud --key qa/1.md

[s3api cli referance](https://docs.aws.amazon.com/cli/latest/reference/s3api/#cli-aws-s3api)

Task:

  1. use aws cli s3 && s3api
    1. create s3
    2. upload files and folders
    3. download files and folders
    4. aws s3 sync files from local to s3
    5. aws s3 sync files from s3 to local

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube