amazon iam - DynamoDb access for unauthenticated users -


i want store analytical information use of mobile apps amazon dynamodb. have following requirements:

  • exactly 1 dynamodb table per 1 mobile app
  • an app can putitem method
  • all users of apps unauthenticated (guests)

to provide mobile apps way access table in dynamodb see 2 options:

  1. hardcode credentials limited permissions apps (permissions putitem specific table);
  2. use amazon cognito temporary credentials unauthenticated users in runtime.

the second option amazon recommends more secure. in case malicious user can either access hardcoded credentials or hardcoded identity pool id same result: getting access aws resource.

question: use of cognito in case give security improvements , if yes, how?

cognito identity totally free - wouldn't have pay anything.

your point using cognito doesn't add security unauthenticated requests isn't correct. cognito faqs:


q: how cognito identity me access aws services securely?

cognito identity assigns users set of temporary, limited privilege credentials access aws resources. can use cognito identity securely access other aws services mobile app without requiring aws account credentials. can use unique identifier generated app users in identity , access management policies. example can create policy s3 bucket allows particular user access own folder.


the same thing described s3 can done dynamo - see this blog post specifics.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo