AWS Classroomnotes 13/Apr/2023

AWS S3 contd

  • Replication to other regions
    • Mangement -> Replication rules
      Preview
      Preview
      Preview
      Preview
      Preview
      Preview
      Preview
    • Replication rules will create s3 jobs

Using CLI

  • AWS S3 supports two cli commands

    • s3
    • s3api (low level operations)
  • AWS CLI has the following syntax aws <service> <action> [--arg1 value1 --argn valuen]
  • Lets work with cloud shell today
    Preview
    Preview
  • s3 bucket uri: s3://<bucket-name>
  • s3 object uri: s3://<bucket-name>/folder-name/object-name s3://qttesting/videos/one.mp4 or s3://qttesting/one.mp4
  • Open aws s3 cli docs Refer Here
  • ls:
    Preview
    Preview
  • mb: create the bucket
    • create a s3 bucket
      Preview
    • in this bucket create two folders
      • music
      • videos
    • in the music upload some files
    • in the videos upload some files
    • show the contents
      • of all the buckets
        Preview
      • of music folder
    • Remove the bucket
  • To upload a file aws s3 cp
  • Create a bucket with name which has source in it and one more bucket with name which has destination in it.
  • Uplod some files in to source bucket (ensure you have folders) and copy the contents into destination bucket
    • copy one file
    • copy all the bucket
      • use sync
      • use recursive copy
    • mv the object in a bucket from one folder to other
  • Delete all the buckets
  • Upload a file into a bucket with public read permissions

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing 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