A
A
Alexey Belov2020-03-05 14:55:07
Amazon Web Services
Alexey Belov, 2020-03-05 14:55:07

How to understand this task statement on AWS?

Hello everyone, I can’t understand what this wording means because I didn’t work with cognito and lambda.

The system is using AWS Cognito for authentication service. Each customer is represented as a separate user pool, and each user pool has several users.
Please describe and write initial simple code for authorization function, that will run as lambda function and will authorize every access for every user to every resource or service (no need to detail all resources, just pick one).

I have a question like this, I know what a user pool is, but "Each customer is represented as a separate user pool, and each user pool has several users", makes me think that it is necessary to take a user and determine which pool he is in, etc. Or is it an ordinary lambda that has just one user pool,https://github.com/marekq/serverless-cognito/blob/... and this sample fits.

In general, I need an interpretation of the problem, because I myself can not understand it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2020-03-05
@Alenorze

In general, in fact, you have several pools and you need to get information from the jwt token or the context in which it is located) the story about customers is just a way to distract. In fact, they want a lambda authorizer for api gateway from you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question