Server credentials & storage recommendations

Connect IAM role to server instance

Credentials can be set explicitly on an S3 storage. However, when running within an EC2 or ECS environment we recommend assigning an IAM role to the server. This way, server credentials can be used when accessing S3 storages and other AWS services.

See ECS or EC2 for how to create the role and connect it to the server instance.

Source and destination storages

Next step is to create the buckets with the correct policies and CORS exceptions, as explained in section Add bucket policy and S3 CORS Configuration

We recommend that you separate source and destination storages. A source storage is where you would keep the original files while a destination storage should hold everything that is generated by Accurate Video.

Make sure that the bucket you setup as a source storage is read-only.

Connecting storages

The buckets can be connected to Accurate Video as storages using either the UI or through the REST API. Having the bucket policies in place, there is no need to apply any explicit credentials. In the UI, just select "Use server credentials".

Configure storage access and tags according to this example.

Automatic ingest

Last step is to configure automatic ingest, usually in the source storage. Follow this UI guide or this REST guide

AWS Rekognition - Setup