Amazon S3 Cookbook

Over 30 hands-on recipes that will get you up and running with Amazon Simple Storage Service (S3) efficiently

Amazon S3 Cookbook

This ebook is included in a Mapt subscription
Naoya Hashimoto

Over 30 hands-on recipes that will get you up and running with Amazon Simple Storage Service (S3) efficiently
$0.00
$39.99
$49.99
$29.99p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785280702
Paperback280 pages

Book Description

Amazon S3 is one of the most famous and trailblazing cloud object storage services, which is highly scalable, low-latency, and economical. Users only pay for what they use and can store and retrieve any amount of data at any time over the Internet, which attracts Hadoop users who run clusters on EC2.

The book starts by showing you how to install several AWS SDKs such as iOS, Java, Node.js, PHP, Python, and Ruby and shows you how to manage objects. Then, you’ll be taught how to use the installed AWS SDKs to develop applications with Amazon S3. Furthermore, you will explore the Amazon S3 pricing model and will learn how to annotate S3 billing with cost allocation tagging. In addition to this, the book covers several practical recipes about how to distribute your content with CloudFront, secure your content with IAM, optimize Amazon S3 performance, and notify S3 events with Lambda.

By the end of this book, you will be successfully implementing pro-level practices, techniques, and solutions in Amazon S3.

Table of Contents

Chapter 1: Managing Common Operations with AWS SDKs
Introduction
Learning AWS SDK for Java and basic S3 operations with sample code
Learning AWS SDK for Node.js and basic S3 operations with sample code
Learning AWS SDK for Python and basic S3 operations with sample code
Learning AWS SDK for Ruby and basic S3 operations with sample code
Learning AWS SDK for PHP and basic S3 operations with sample code
Chapter 2: Hosting a Static Website on Amazon S3 Bucket
Introduction
How to configure a static website on Amazon S3 bucket
How to configure S3 server access logging
How to configure a static website using a custom domain
How to configure a static website on Amazon S3 bucket with AWS CLI
Chapter 3: Calculating Cost with the AWS Simple Monthly Calculator
Introduction
How to calculate and estimate S3 costs with the AWS calculator
How to annotate S3 billing by adding cost allocation tagging
Chapter 4: Deploying a Static Website with CloudFormation
Introduction
How to deploy a template of a static website with CloudFormation
How to deploy a template with AWS CLI
Chapter 5: Distributing Your Contents via CloudFront
Introduction
How to configure a CloudFront distribution on the Amazon S3 bucket
How to measure throughput between S3 and CloudFront
How to compare costs for data transfer between S3 and CloudFront
Chapter 6: Securing Resources with Bucket Policies and IAM
Introduction
Walkthrough 1: To grant users bucket permissions
Walkthrough 2: To grant cross-account bucket permissions
Walkthrough 3: To grant cross-account bucket permissions to objects without ownership
Walkthrough 4: Bucket and user policy examples
Chapter 7: Sending Authenticated Requests with AWS SDKs
Introduction
How to make requests using IAM user temporary credentials with AWS SDK
How to make requests using federated user temporary credentials with AWS SDK
Chapter 8: Protecting Data Using Server-side and Client-side Encryption
Introduction
How to protect data using server-side encryption
How to protect data using client-side encryption
Chapter 9: Enabling Cross-origin Resource Sharing
Introduction
Walkthrough 1: Enabling CORS through the S3 console
Walkthrough 2: Enabling CORS with AWS CLI
Chapter 10: Managing Object Lifecycle to Lower the Cost
Introduction
How to apply the lifecycle policy through the S3 console
How to apply the lifecycle policy with AWS CLI
Chapter 11: S3 Performance Optimization
Introduction
How to optimize PUT requests
How to optimize GET requests
Chapter 12: Creating Triggers and Notifying S3 Events to Lambda
Introduction
How to create a sample policy to notify S3 events
How to enable S3 event notification with Lambda

What You Will Learn

  • Host a static website on Amazon S3
  • Calculate costs with AWS Simple Monthly Calculators
  • Deploy a static website via CloudFormation
  • Distribute your content via CloudFront
  • Secure resources with bucket policies and IAM
  • Protect objects using server-side and client-side encryption
  • Enable Cross-Origin Resource Sharing
  • Manage objects’ life cycles to lower costs
  • Optimize performance for uploading as well as downloading objects
  • Enable S3 event notifications and create Lambda functions
  • Manage common operations with AWS SDKs

Authors

Table of Contents

Chapter 1: Managing Common Operations with AWS SDKs
Introduction
Learning AWS SDK for Java and basic S3 operations with sample code
Learning AWS SDK for Node.js and basic S3 operations with sample code
Learning AWS SDK for Python and basic S3 operations with sample code
Learning AWS SDK for Ruby and basic S3 operations with sample code
Learning AWS SDK for PHP and basic S3 operations with sample code
Chapter 2: Hosting a Static Website on Amazon S3 Bucket
Introduction
How to configure a static website on Amazon S3 bucket
How to configure S3 server access logging
How to configure a static website using a custom domain
How to configure a static website on Amazon S3 bucket with AWS CLI
Chapter 3: Calculating Cost with the AWS Simple Monthly Calculator
Introduction
How to calculate and estimate S3 costs with the AWS calculator
How to annotate S3 billing by adding cost allocation tagging
Chapter 4: Deploying a Static Website with CloudFormation
Introduction
How to deploy a template of a static website with CloudFormation
How to deploy a template with AWS CLI
Chapter 5: Distributing Your Contents via CloudFront
Introduction
How to configure a CloudFront distribution on the Amazon S3 bucket
How to measure throughput between S3 and CloudFront
How to compare costs for data transfer between S3 and CloudFront
Chapter 6: Securing Resources with Bucket Policies and IAM
Introduction
Walkthrough 1: To grant users bucket permissions
Walkthrough 2: To grant cross-account bucket permissions
Walkthrough 3: To grant cross-account bucket permissions to objects without ownership
Walkthrough 4: Bucket and user policy examples
Chapter 7: Sending Authenticated Requests with AWS SDKs
Introduction
How to make requests using IAM user temporary credentials with AWS SDK
How to make requests using federated user temporary credentials with AWS SDK
Chapter 8: Protecting Data Using Server-side and Client-side Encryption
Introduction
How to protect data using server-side encryption
How to protect data using client-side encryption
Chapter 9: Enabling Cross-origin Resource Sharing
Introduction
Walkthrough 1: Enabling CORS through the S3 console
Walkthrough 2: Enabling CORS with AWS CLI
Chapter 10: Managing Object Lifecycle to Lower the Cost
Introduction
How to apply the lifecycle policy through the S3 console
How to apply the lifecycle policy with AWS CLI
Chapter 11: S3 Performance Optimization
Introduction
How to optimize PUT requests
How to optimize GET requests
Chapter 12: Creating Triggers and Notifying S3 Events to Lambda
Introduction
How to create a sample policy to notify S3 events
How to enable S3 event notification with Lambda

Book Details

ISBN 139781785280702
Paperback280 pages
Read More

Read More Reviews