Scroll

Amazon S3 Account

Amazon S3 Account

Follow
Summary How to create a Amazon S3 bucket for multimedia files upload
Applies to Askia Design ; askiaface;
Written for Survey Designers
Keywords media capture ; amazon s3 ; askiaface iOS ; askiaface Android; photo ; video ; sound;

Prerequisites for multimedia Amazon S3 upload in Face for tablets surveys:

  • Amazon S3 account
  • Bucket set in Ireland.

 

AWS > MOBILES SERVICES > COGNITO

 

1/ Go to  > Cognito > Manage Federated Identities > Create new identity pool

 

 

2/ When creating the new identity pool, it will prompt to create the two roles. Click on "allow".

AWS > STORAGE & CONTENT DELIVERY > S3

 

3/ Create the bucket (Region Ireland / eu-west-1 mandatory!).

 

 

4/ In Bucket properties > Permissions > Edit bucket policy > Add this with the name of your bucket:

{
    "Version": "2008-10-17",
    "Statement": [
    {
        "Sid": "AllowPublicRead",
        "Effect": "Allow",
        "Principal": {
            "AWS": "*"
        },
        "Action": "s3:GetObject",
        "Resource": "arn:aws:s3:::NAME OF YOUR BUCKET/*"
    }
    ]
}

AWS > SECURITY & IDENTITY > IDENTITY & ACCESS MANAGEMENT  

5/ Check  the roles (auth and unauth) > IAM > Roles:

 

6/ Add a policy for the role "unauth" > Create role Policy > Policy generator > Select:

Effect > allow

AWS Service > Amazon S3

Actions > All Actions

ARN > arn:aws:s3:::name of the bucket

It will create a second role (policygen-xxx)

 

DESIGN > SCREEN MODE > MEDIA CAPTURE OPTIONS

7/ Enter the bucket and ID in design (element properties > media capture)

User name : your bucket name

Password: identity pool ID (you can get it through Cognito > Federated identities > your pool > Sample code). Should start with "eu-west-1:[guid]".

Have more questions? Submit a request

Comments