Configuring AWS S3 bucket policy for the AWS Elemental MediaConvert service
During setup of your AWS Elemental MediaConvert service, you will be asked to update the bucket policy on the AWS S3 bucket(s) you want to use. You can use a single bucket with different folders for input and output, or use different buckets. Depending on if you use different input and output buckets, or the same you need to set up your bucket policy differently.
To create a S3 bucket in AWS, direct your attention to the webpage of your AWS account and the Service S3. To create a bucket, click the Create Bucket button and follow the instructions prompted by AWS. To create the subdirectories, click on your bucket and then click the button Create folder. Choose a name for your folders. Repeat this for all the buckets you need. To set up the bucket policy navigate to the Permissions tab in your bucket, and select Bucket Policy.
![](../../__attachments/2551742511/S_uaW6PTYhP3g9fuPEda3pAYA4ssqfDjCg.png?inst-v=c263b046-0db3-4e5e-9b28-d475c958150e)
For the bucket you use for input (source), set the following policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"arn:aws:iam::823635665685:role/MediaConvertRole"
]
},
"Action": [
"s3:GetBucketLocation",
"s3:ListBucket",
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::{your-s3-bucket}/*",
"arn:aws:s3:::{your-s3-bucket}"
]
}
]
}
For the bucket you want to use as output, add the following policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"arn:aws:iam::823635665685:role/MediaConvertRole",
"arn:aws:iam::823635665685:role/vidinet-ec2-sf"
]
},
"Action": [
"s3:GetBucketLocation",
"s3:ListBucket",
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": [
"arn:aws:s3:::{your-s3-bucket}/*",
"arn:aws:s3:::{your-s3-bucket}"
]
}
]
}
If you use the same bucket for both input and output you can use the following policy, combining the two above.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"arn:aws:iam::823635665685:role/vidinet-ec2-sf",
"arn:aws:iam::823635665685:role/MediaConvertRole"
]
},
"Action": [
"s3:GetBucketLocation",
"s3:ListBucket",
"s3:GetObject",
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": [
"arn:aws:s3:::{your-s3-bucket}/*",
"arn:aws:s3:::{your-s3-bucket}"
]
}
]
}