← Blog

Writing archive

Blog page 30

Older notes, lessons, and series entries from the growing technical library.

Archive

Posts page 30

Showing 1,393-1,440 of 1,446

2 min readSeries: AWS from Zero · Part 54

Choose a safe presigned URL expiry

Compare short and long S3 presigned URL lifetimes and understand credential limits.

#aws#cli#s3#storage#security
2 min readSeries: AWS from Zero · Part 53

Create a presigned S3 download URL

Generate a temporary signed URL for downloading one private S3 object.

#aws#cli#s3#storage#security
2 min readSeries: AWS from Zero · Part 52

Audit all S3 lifecycle rules

List lifecycle rule IDs, status values, filters, transitions, and expiration actions.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 51

Automatically abort stale multipart uploads

Create a lifecycle rule that aborts incomplete multipart uploads after seven days.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 50

Expire noncurrent S3 versions with lifecycle

Limit version-storage growth by expiring noncurrent object versions after a retention period.

#aws#cli#s3#storage#versioning
2 min readSeries: AWS from Zero · Part 49

Transition S3 objects to Standard-IA with lifecycle

Add a lifecycle transition for objects under a prefix after 30 days.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 48

Expire old S3 objects with a lifecycle rule

Create an S3 lifecycle rule that expires objects under one prefix after 30 days.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 47

Abort an incomplete S3 multipart upload

Find and abort an unfinished multipart upload so its stored parts stop accumulating cost.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 46

Complete an S3 multipart upload

Assemble uploaded S3 parts in order and verify the completed object.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 45

Upload one S3 multipart part

Upload a numbered multipart part and capture the ETag required for completion.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 44

Start an S3 multipart upload

Initiate a multipart upload and capture its upload ID for later part operations.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 43

Verify stored S3 checksums without downloading

Retrieve checksum fields with head-object and checksum-mode ENABLED.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 42

Upload an S3 object with a SHA-256 checksum

Ask S3 to calculate and store a SHA-256 checksum during an object upload.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 41

Count S3 objects and total their size

Use an AWS CLI JMESPath query to count listed S3 objects and sum their bytes.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 40

Control S3 listing pagination

Use max-items and starting-token to understand AWS CLI pagination over S3 objects.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 39

Group S3 keys with a delimiter

Use an S3 delimiter to produce folder-like CommonPrefixes in object listings.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 38

List S3 objects under one prefix

Use list-objects-v2 with a prefix to inspect one logical area of a bucket.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 37

Choose an S3 storage class during upload

Upload an object directly to S3 Standard-IA and inspect its storage class.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 36

Replace S3 metadata while copying an object

Use copy-object with metadata-directive REPLACE to create a copy with new metadata.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 35

Replace and remove S3 object tags

Safely replace an S3 object's full tag set and then remove all object tags.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 34

Add tags to an S3 object

Attach object tags with put-object-tagging and read them back from the CLI.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 33

Configure S3 CORS for one web origin

Add a narrow S3 CORS rule for browser GET and HEAD requests from one origin.

#aws#cli#s3#storage#web
2 min readSeries: AWS from Zero · Part 32

Check whether an S3 bucket policy is public

Use get-bucket-policy-status to ask S3 whether a bucket policy is considered public.

#aws#cli#s3#storage#security#policy
2 min readSeries: AWS from Zero · Part 31

Read an S3 bucket policy line by line

Create a least-privilege bucket policy document locally and inspect its IAM policy structure.

#aws#cli#s3#storage#security#policy
2 min readSeries: AWS from Zero · Part 30

Enforce bucket owner ownership in S3

Set S3 Object Ownership to BucketOwnerEnforced and confirm ACLs are disabled.

#aws#cli#s3#storage#security
2 min readSeries: AWS from Zero · Part 29

Read each S3 public access block setting

Inspect and explain the four independent S3 Block Public Access values.

#aws#cli#s3#storage#security
2 min readSeries: AWS from Zero · Part 28

Block all public access on an S3 bucket

Enable all four S3 Block Public Access controls from the AWS CLI.

#aws#cli#s3#storage#security
2 min readSeries: AWS from Zero · Part 27

Inspect S3 bucket encryption deeply

Query an S3 bucket encryption configuration and distinguish SSE-S3 from SSE-KMS.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 26

Set S3 default encryption with AWS KMS

Configure default SSE-KMS encryption with the AWS managed S3 key and verify the bucket setting.

#aws#cli#s3#storage#security#kms
2 min readSeries: AWS from Zero · Part 25

Set S3 default encryption with SSE-S3

Explicitly configure SSE-S3 default bucket encryption and verify encryption on a new object.

#aws#cli#s3#storage#security
2 min readSeries: AWS from Zero · Part 24

Restore an older S3 object version

Restore an older S3 object version by copying it over the same key as the new current version.

#aws#cli#s3#storage#versioning
2 min readSeries: AWS from Zero · Part 23

Understand S3 delete markers through CLI

Create, inspect, and remove an S3 delete marker to understand deletion in a versioned bucket.

#aws#cli#s3#storage#versioning
2 min readSeries: AWS from Zero · Part 22

Enable S3 Versioning from zero

Enable S3 Versioning, upload two versions of one object, and inspect their version IDs.

#aws#cli#s3#storage#versioning
2 min readSeries: AWS from Zero · Part 21

Delete many S3 objects safely

Delete a controlled list of S3 object keys in one request and inspect the result.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 20

Delete one S3 object safely

Inspect, optionally back up, delete, and verify one S3 object from the command line.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 19

Use include and exclude rules with S3 sync

Preview and run an S3 sync that uploads only matching files with include and exclude filters.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 18

Copy S3 objects across buckets

Copy an object from one S3 bucket to another and verify the destination with AWS CLI.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 17

Copy S3 objects inside one bucket

Copy an S3 object to a new key in the same bucket, then compare the source and destination.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 16

List S3 buckets with s3api

List the S3 buckets in your AWS account and shape the result with AWS CLI queries.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 15

Inspect an S3 object with head-object

Use head-object to check S3 object size, type, metadata, and last modified time without downloading the object.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 14

Upload an S3 object with metadata

Use AWS CLI to upload an S3 object with custom metadata, then inspect it without downloading the file.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 13

S3 CLI vs S3 API commands

Understand when to use high-level aws s3 commands and when to use lower-level aws s3api commands.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 12

S3 create-bucket: us-east-1 vs other regions

Understand why S3 bucket creation looks different in us-east-1 compared with other AWS regions.

#aws#cli#s3#storage
2 min readSeries: AWS from Zero · Part 11

S3 bucket naming rules from the CLI

Learn the bucket naming rules that matter before you run create-bucket, and test names safely from the command line.

#aws#cli#s3#storage
3 min readSeries: AWS from Zero · Part 10

Automation and the long AWS roadmap

Turn one-off AWS CLI commands into repeatable scripts, JSON inputs, CloudFormation steps, and a service-by-service roadmap.

#aws#automation#cloudformation#cli
2 min readSeries: AWS from Zero · Part 9

VPC from Zero: networking pieces by command

Build the mental model of VPCs, subnets, routes, internet gateways, and security groups before adding bigger services.

#aws#vpc#networking#cli
2 min readSeries: AWS from Zero · Part 8

EC2 from Zero: launch your first instance

Create a key pair and security group, find an AMI, launch an EC2 instance, SSH into it, and terminate it safely.

#aws#ec2#linux#cli
2 min readSeries: AWS from Zero · Part 7

Host a static website on S3 using only CLI

Turn an S3 bucket into a tiny static website with bucket website configuration, public-read policy, upload, test, and cleanup.

#aws#s3#web#cli