MediaConvert
User Guide

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

Example Policies

Use these example IAM policies to grant access to your resources, or modify them to suit your use case. For information about how to attach a policy to an IAM user, see Creating Policies on the JSON Tab in the IAM User Guide.

Example Policy: Basic MediaConvert User Policy

The following example policy grants the basic permissions that a user needs to operate AWS Elemental MediaConvert. If you are using encryption, or if your Amazon S3 buckets have default encryption enabled, you need additional permissions. For more information, see Data Protection for AWS Elemental MediaConvert.

{ "Version": "2012-10-17", "Statement": [{ "Sid": "mediaconvertActions", "Effect": "Allow", "Action": [ "mediaconvert:*", ], "Resource": "arn:aws:mediaconvert:*:*:*" }, { "Sid": "iamActions", "Effect": "Allow", "Action": [ "iam:PassRole", "iam:ListRoles" ], "Resource": [ "arn:aws:iam::*:role/*" ] }, { "Sid": "s3Actions", "Effect": "Allow", "Action": [ "s3:ListBucket", "s3:GetBucketLocation", "s3:ListAllMyBuckets" ], "Resource": [ "arn:aws:s3:::*" ] } ] }

Example Policy: Resource-Level Access Control

The following example policy grants permissions to certain AWS Elemental MediaConvert resources in your account. In this example, the account number is 012345678910. It allows the following actions, in any partition and Region:

  • View the details of all queues in the account at once.

  • View all the jobs that have been submitted to the queue "myQueue" at once.

  • Create a job and submit it to the queue "myQueue", referencing any presets with names that start with "allow" and referencing any job template.

  • Create a job template referencing the queue "myQueue" and any presets with names that start with "allow".

Note

You can't grant cross-account permissions to AWS Elemental MediaConvert resources, such as queues, output presets, and jobs. You can grant cross-account permissions to your input and output media files stored in Amazon S3.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "AllowListQueues", "Effect": "Allow", "Action": "mediaconvert:ListQueues", "Resource": "*" }, { "Sid": "AllowListJobsInQueue", "Effect": "Allow", "Action": "mediaconvert:ListJobs", "Resource": "arn:*:mediaconvert:*:012345678910:queues/myQueue" }, { "Sid": "AllowCreateLimitedJobs", "Effect": "Allow", "Action": [ "mediaconvert:CreateJob", "mediaconvert:CreateJobTemplate" ], "Resource": [ "arn:*:mediaconvert:*:012345678910:queues/myQueue", "arn:*:mediaconvert:*:012345678910:presets/allow*", "arn:*:mediaconvert:*:012345678910:jobTemplates/*" ] } ] }

Example Policy: Tag-based Access Control Using Resource Tags

The following policy grants the user access to all actions on all AWS Elemental MediaConvert resources in the account, unless the resource or resources are tagged with the key access and value denied or a value that starts with the string "deny".

Note

This policy demonstrates the IAM principle that, in the case where user policies both allow and deny action on a resource, the denial takes precedence. Therefore, the user with this attached policy can't use the denied resources, even though they have general permissions to all AWS Elemental MediaConvert resources.

{ "Version": "2012-10-17", "Statement": [ { "Sid": "AllowAllMediaConvert", "Effect": "Allow", "Action": [ "mediaconvert:*" ], "Resource": "*" }, { "Sid": "DenyUseOfTaggedDeny", "Effect": "Deny", "Action": [ "mediaconvert:*" ], "Resource": "*", "Condition": { "StringEquals": { "aws:ResourceTag/access": [ "deny*", "denied" ] } } } ] }