Try for free

Setting Up Amazon Rekognition

You must be using Amazon S3 as your cloud storage provider to use Rekognition for Vision processing. Rekognition will use all of the same connection info as cloud storage, so to get Rekognition working requires only a few added steps.

If you haven’t already setup Amazon S3 cloud storage, you can get started by reading this documentation.

One important thing to note is that Rekognition is only available in a subset of regions. Consult this chart to determine if your bucket is in one of those regions. If not, you’ll need to create a new bucket in a region that Rekognition is in.

If you followed the Amazon S3 cloud storage setup, you’ll have created a policy specifically for use with Media Cloud. Navigate to your Amazon Console and then navigate to the IAM service.

In the IAM service, select Policies on the left and then find the policy you created when setting up cloud storage. Click on it and you will be in a Summary screen for the policy.

Click on the Edit policy button.

Make the following adjustments to the policy so that it looks like this:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:DeleteObjectTagging",
                "s3:ListBucketMultipartUploads",
                "s3:DeleteObjectVersion",
                "s3:ListBucket",
                "s3:DeleteObjectVersionTagging",
                "s3:GetBucketAcl",
                "s3:ListMultipartUploadParts",
                "s3:PutObject",
                "s3:GetObjectAcl",
                "s3:GetObject",
                "s3:AbortMultipartUpload",
                "s3:DeleteObject",
                "s3:GetBucketLocation",
                "s3:PutObjectAcl"
            ],
            "Resource": [
                "arn:aws:s3:::YOUR-BUCKET-NAME",
                "arn:aws:s3:::YOUR-BUCKET-NAME/*",
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "rekognition:DetectLabels",
                "rekognition:GetCelebrityRecognition",
                "rekognition:GetContentModeration",
                "rekognition:DetectFaces",
                "rekognition:DetectModerationLabels",
                "rekognition:RecognizeCelebrities",
                "rekognition:CompareFaces",
                "rekognition:DetectText",
                "rekognition:GetCelebrityInfo",
                "s3:HeadBucket",
                "rekognition:GetLabelDetection"
            ],
            "Resource": "*"
        }
    ]
}

Replace YOUR-BUCKET-NAME with the actual name of your bucket.

Once done, click on Review Policy and then click on Save Changes. Rekognition is now configured and ready to use.