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

There are situations where you need to grant permissions to temporarily access Amazon S3 resources. For example, your applications create temporary users to get objects in an S3 bucket for a certain period of time and the permissions granted to the temporary user need to be disabled or removed after the duration expires. IAM users support to request temporary security credentials using the AWS Security Token Service (AWS STS).You will learn how to make requests using IAM user temporary credentials with AWS SDK for PHP.

Tip

For further information about the AWS Security Token Service (AWS STS), see http://docs.aws.amazon.com/STS/latest/UsingSTS/Welcome.html.

Getting ready

As we ...

Get Amazon S3 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.