Skip to content

Commit 6a72e0a

Browse files
authored
Add final pattern file
1 parent 1c86c8b commit 6a72e0a

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"title": "Amazon Cognito user management using Amazon API Gateway and AWS Lambda",
3+
"description": "Deploys Amazon Cognito user pool, Amazon API Gateway REST API with AWS Lambda integration for user creation, confirmation & token retrieval in Java.",
4+
"language": "Java",
5+
"level": "200",
6+
"framework": "SAM",
7+
"introBox": {
8+
"headline": "How it works",
9+
"text": [
10+
"Amazon API Gateway receives the HTTP POST request containing the request details in JSON format. There are 3 POST methods exposed for create user, confirm user and login user operations.",
11+
"AWS Lambda is by the API Gateway, this function written in Java uses Amazon Cognito API to create, confirm and login user.",
12+
"Depending on the operation invoked, user is created, confirmed or logged in the Amazon Cognito user pool.",
13+
"The Lambda function processes the Amazon Cognito API response and sends it back to the user via the API Gateway."
14+
]
15+
},
16+
"gitHub": {
17+
"template": {
18+
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/apigw-lambda-cognito-sam-java",
19+
"templateURL": "serverless-patterns/apigw-lambda-cognito-sam-java",
20+
"projectFolder": "apigw-lambda-cognito-sam-java",
21+
"templateFile": "template.yaml"
22+
}
23+
},
24+
"resources": {
25+
"bullets": [
26+
{
27+
"text": "Call a REST API integrated with an Amazon Cognito user pool",
28+
"link": "https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-invoke-api-integrated-with-cognito-user-pool.html"
29+
},
30+
{
31+
"text": "Building fine-grained authorization using Amazon Cognito, API Gateway, and IAM",
32+
"link": "https://aws.amazon.com/blogs/security/building-fine-grained-authorization-using-amazon-cognito-api-gateway-and-iam/"
33+
}
34+
]
35+
},
36+
"deploy": {
37+
"text": [
38+
"sam build",
39+
"sam deploy --guided"
40+
]
41+
},
42+
"testing": {
43+
"text": [
44+
"See the GitHub repo for detailed testing instructions."
45+
]
46+
},
47+
"cleanup": {
48+
"text": [
49+
"Delete the stack: <code>sam delete</code>."
50+
]
51+
},
52+
"authors": [
53+
{
54+
"name": "Biswanath Mukherjee",
55+
"image": "https://d1rwvjey2iif32.cloudfront.net",
56+
"bio": "I am a Sr. Solutions Architect working at AWS India.",
57+
"linkedin": "biswanathmukherjee"
58+
}
59+
],
60+
"patternArch": {
61+
"icon1": {
62+
"x": 20,
63+
"y": 50,
64+
"service": "apigw",
65+
"label": "API Gateway"
66+
},
67+
"icon2": {
68+
"x": 50,
69+
"y": 50,
70+
"service": "lambda",
71+
"label": "AWS Lambda"
72+
},
73+
"icon3": {
74+
"x": 80,
75+
"y": 50,
76+
"service": "cognito",
77+
"label": "Cognito"
78+
},
79+
"line1": {
80+
"from": "icon1",
81+
"to": "icon2",
82+
"label": ""
83+
},
84+
"line2": {
85+
"from": "icon2",
86+
"to": "icon3",
87+
"label": ""
88+
}
89+
}
90+
}

0 commit comments

Comments
 (0)