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

How to make requests using federated user temporary credentials with AWS SDK


We configured IAM users to control permissions of each IAM user to access AWS resources. AWS IAM supports identify federation as external identities, to securely access to your AWS resources without the necessity of creating IAM users. We can provide permissions to the federated user using temporary credentials without having to create IAM users.

Tip

For further information about Federation Management, see http://aws.amazon.com/iam/details/manage-federation/.

Getting ready

As we use AWS SDK for PHP in this chapter, you need to have the AWS SDK for PHP properly installed in your server or client PC. Install AWS SDK for PHP following the instructions in the Learning AWS SDK for PHP and basic S3 operations with sample code section of Chapter 1, Managing Common Operations with AWS SDKs.

How to do it…

First, we create an IAM policy to allow temporary security credentials for federated users and list bucket actions, and then...