Amazon Polly
Developer Guide

Setting Up the IAM Policy for Asynchronous Synthesis

In order to use the asynchronous synthesis functionality, you will need an IAM policy that allows the following:

  • use of new Amazon Polly operations

  • writing to the output S3 bucket

  • publishing to the status SNS topic [optional]

The following policy grants only the necessary permissions required for asynchronous synthesis and can be attached to the IAM user.

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "polly:StartSpeechSynthesisTask", "polly:GetSpeechSynthesisTask", "polly:ListSpeechSynthesisTasks" ], "Resource": "*" }, { "Effect": "Allow", "Action": "s3:PutObject", "Resource": "arn:aws:s3:::bucket-name/*" }, { "Effect": "Allow", "Action": "sns:Publish", "Resource": "arn:aws:sns:region:account:topic" } ] }

For more information about using IAM policies with Amazon Polly and how to associate IAM policies with IAM users, see Access Control.