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 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 instruction Learning AWS SDK for PHP and basic S3 operations with sample code from Chapter...