How to add default transcoder role
In order to use AWS Transcoder to transcode your videos you will need to do one of two things.
The first and easiest option is to simply use the AWS Root Access keys when you setup and configure S3 Media Maestro. If you are using Root Access Keys, then the steps in this article aren't necessary.
If you don't plan on using the AWS Root Access Keys, and you plan on using an IAM user, you will then need to manually setup the transcoder role and apply a policy.
- First, you will need to login to the AWS Console with your root user account.
- Once logged in, navigate to IAM ( Identity and Access Management ).
- Next, click on Policies and Create policy
- Select the JSON tab and replace the entire block of JSON with the following and click Next
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "1",
"Effect": "Allow",
"Action": [
"s3:Put*",
"s3:ListBucket",
"s3:*MultipartUpload*",
"s3:Get*"
],
"Resource": "*"
},
{
"Sid": "2",
"Effect": "Allow",
"Action": "sns:Publish",
"Resource": "*"
},
{
"Sid": "3",
"Effect": "Deny",
"Action": [
"s3:*Delete*",
"s3:*Policy*",
"sns:*Remove*",
"sns:*Delete*",
"sns:*Permission*"
],
"Resource": "*"
}
]
}
- For the Policy name use: S3MMAmazonElasticTranscoderRole
- Click Create policy
- Next, click on Roles and then click Create Role
- Select Custom trust policy
- In the Custom trust policy box, replace the entire block of JSON with the following and click Next
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "1",
"Effect": "Allow",
"Principal": {
"Service": "elastictranscoder.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
- Select the S3MMAmazonElasticTranscoderRole and click Next
- For the Role name use: Elastic_Transcoder_Default_Role_s3mm and give it a description (description optional)
- Click Create role