Skip to Content

AWS S3 and CLI Command Cheat Sheet

Posted on October 27, 2022 by

Categories: AWS

Tags:

Even though AWS Simple Storage Service is one of the more specific AWS products to use right out of the box, we occasionally require a fast reference for the command line. You need some references, especially if you’re new to the AWS CLI (Command Line Interface) or need to know critical S3 features before the important CSA test. For this reason, S3 will be the primary emphasis of the first AWS-themed cheat sheet. To view the image in its entirety and begin studying, click on it below.

Commands for AWS CLI

  • install pip on CLI set up awscli
  • CLI Configuration: AWS Config
  • AWS S3 Ls List Buckets
  • AWS S3 List Bucket Content: AWS ls s3:/
  • Create Bucket: AWS s3 MB s3:/
  • AWS S3 RB s3:/bucket> will remove any empty buckets.
  • Objects for Sync: AWS s3 sync ‘local’ s3:/bucket
  • AWS S3 object> s3:/bucket> for copying to
  • AWS S3 command to copy from a bucket is aws s3 cp s3:/bucket>/object>destination>.
  • AWS S3 mv s3:/bucket>/object> destination>
  • Takeaway: AWS s3 rm s3:/bucket>/object
  • Sync Objects Between Directories or Buckets: AWS s3 sync local s3:/

S3 Storage Services from AWS

Standard S3

S3 Standard offers extreme durability, availability, and item performance storage for frequently accessed records. S3 Standard is appropriate for many use cases because of its low latency and high throughput, including cloud services, dynamic websites, content distribution, mobile and gaming apps, and massive data analytics.

Tiering S3 Intelligent

The only cloud storage class that automatically reduces costs by shifting things across four access levels when access patterns change is Amazon S3 Intelligent-Tiering (S3 Intelligent-Tiering). The S3 Intelligent-Tiering storage class is designed to reduce operating costs while increasing efficiency by automatically transferring data to the most economical access tier. For it to function, objects are stored in four access tiers: two low latency low-latency for frequent and infrequent use and two optional archive access tiers built for asynchronous access and designed for uncommon access.

Standard-IA S3

S3 Standard-IA is used for data that needs quick access sometimes but is not routinely accessed. S3 Standard-IA offers the same fast throughput, low latency, and good durability as S3 Standard at a cheap per-GB storage cost. S3 Standard-IA is ideal for long-term storage, backups, and as a data store for disaster recovery files because of its low cost and excellent overall performance.

One Zone-IA S3

S3 One Zone-IA is designed for less often accessible data that must yet be retrieved rapidly when necessary. S3 One Zone-IA stores data in a single AZ and is 20% less expensive than S3 Standard-IA. This differs from other S3 storage classes, which need data to be kept in at least three availability zones (AZ). Customers that want a less expensive alternative for data with occasional access but do not require the availability and resilience of S3 Standard or S3 Standard-IA should choose S3 One Zone-IA., a suitable option for keeping backup copies of local data that can be easily regenerated.

Glacier S3

A cheap, reliable, and secure type of storage for data archiving is the S3 Glacier. Any quantity of data may be safely stored at a competitive or cheaper cost than on-premise alternatives. S3 Glacier has three recovery options, ranging from a few minutes to hours, to meet various demands while keeping costs low. You may upload objects directly to S3 Glacier or use S3 lifecycle rules to move data between one of the S3 active data storage classes.

S3 Deep Glacier Archive

The least expensive storage tier in Amazon S3, S3 Glacier Deep Archive, offers long-term retention and digital retention of material that can be accessed only occasionally. Customers in highly regulated fields, including financial services, healthcare, and the public sector, who must maintain data for at least seven to ten years to comply with legal obligations, are the target audience for this product. S3 Glacier Deep Archive is a cost-efficient and simple-to-manage replacement to magnetic tape systems, whether local libraries or external services and may be utilized for backup and disaster recovery use cases.

Outposts S3

Object storage is provided via Amazon S3 on Outposts in your on-premises AWS Outposts setup. S3 on Outposts makes it simple to store and retrieve data in your Outpost while also securing your data using S3 APIs and capabilities currently available in AWS Regions. Limit access, mark it, and make a report about it. With the S3 APIs, S3 on Outposts provides a single Amazon S3 storage class called S3 Outposts that employs numerous devices and servers at their outposts to store data redundantly and permanently.