Book Image

Amazon S3 Cookbook (n)

By : Naoya Hashimoto
Book Image

Amazon S3 Cookbook (n)

By: Naoya Hashimoto

Overview of this book

Table of Contents (19 chapters)
Amazon S3 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Walkthrough 2: To grant cross-account bucket permissions


If you own several AWS accounts (for example, Account A and Account B for different projects) and grant permissions to access the resources such as buckets or objects between the accounts, for example, you want to grant permissions that Account A allows Account B to access the objects or buckets of Account A, you can grant such permissions using cross-account permissions.

The following diagram shows how the AWS account A grants permissions to the S3 bucket, and the Admin IAM user in the AWS account B delegates permission to a different IAM user in its account and for this walkthrough.

To summarize, what you need to do is:

  1. Create a bucket policy in Account A, granting cross-account permission to Account B to perform specific operations.

  2. Attach a user policy in Account B to the IAM user to delegate permissions from Account A.

  3. Verify that the IAM user in Account B is granted permissions to access objects in the bucket owned by Account A.

We...