Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Amazon S3 Cookbook (n)

You're reading from   Amazon S3 Cookbook (n) Over 30 hands-on recipes that will get you up and running with Amazon Simple Storage Service (S3) efficiently

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher Packt
ISBN-13 9781785280702
Length 280 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Naoya Hashimoto Naoya Hashimoto
Author Profile Icon Naoya Hashimoto
Naoya Hashimoto
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Managing Common Operations with AWS SDKs FREE CHAPTER 2. Hosting a Static Website on Amazon S3 Bucket 3. Calculating Cost with the AWS Simple Monthly Calculator 4. Deploying a Static Website with CloudFormation 5. Distributing Your Contents via CloudFront 6. Securing Resources with Bucket Policies and IAM 7. Sending Authenticated Requests with AWS SDKs 8. Protecting Data Using Server-side and Client-side Encryption 9. Enabling Cross-origin Resource Sharing 10. Managing Object Lifecycle to Lower the Cost 11. S3 Performance Optimization 12. Creating Triggers and Notifying S3 Events to Lambda Index

Walkthrough 1: To grant users bucket permissions

The first walkthrough is that an AWS account owns a bucket and has an IAM user in the AWS account. The scenario is as follows:

  • The IAM user has no permissions and needs to be granted permissions to operate any tasks on the bucket
  • The bucket owner and the parent account are the same
  • The AWS account can use a bucket policy, a user policy or both to grant its user permissions on the bucket

    Tip

    AWS IAM (Identification and Access Management) is to control access to AWS resources. For more information about IAM, see http://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html.

The following diagram shows the relation between an AWS account, an S3 bucket, an IAM user, a bucket policy, and a user policy for this walkthrough:

Walkthrough 1: To grant users bucket permissions

To summarize, what you need to do is:

  1. Create a bucket policy with a set of permissions for the IAM user.
  2. Attach a user policy to the IAM user with additional permissions.
  3. Verify that the IAM user is granted permissions via both the...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime