How do I create a policy for the s3/store robot?

Archived from the Transloadit support forum. Originally posted on December 2, 2013; details may be outdated, see our docs for current behavior. Original thread

Hello,

I’m not sure how I go about adding permissions to my s3 bucket as outlined in your docs.

I would be grateful if you could explain how I should do this.

Also, can you tell me what value I should put in the ‘Sid’ key?

And finally, why is a policy necessary? I have defined a template and am able to upload files to my s3 bucket using your JQuery bucket. So not sure what the policy adds.

Thanks
Lee.
Thanks,
Lee.

Hey Lee,

sure, no problem. You need to login to your S3 account and right click on your bucket. There you have “Add bucket policy”.

The bucket policy is necessary in order to set the proper permissions on the bucket that are required for Transloadit to store files in your bucket and to verify that an upload actually reached your bucket. It’s an additional security layer that S3 demands.

Sid is just a small description that you set in order to recognize the rule later. It can be “Allow get requests to specific referers”, or just “SomePolicy” or just “FirstPolicy” or even “1”.

Here you can find additional information: http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucketPolicies.html

I hope this helps.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Thanks Tim. Do I need to refer to/identify requests from TransloadIt in the policy? I read yesterday that you can, for example, apply policies to certain domains etc.

If so, how should I refer to your service?

Lee.

Hey Lee,

I am not sure that’s possible. I think policies only work for buckets.

But I am sure the AWS support can help with that.

Sorry that I cannot help more with this question. : /

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Okay. So effectively the policy would apply to anyone and not just requests from Transloadit? Seems a bit odd if that were the case.

No, you can also allow things for multiple accounts or just. Please see the examples here: http://docs.aws.amazon.com/AmazonS3/latest/dev/AccessPolicyLanguage_UseCases_s3_a.html

Closing this. If you have more questions, please reply to this ticket which will re-open it.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos