Skip to content

Commit b5786d7

Browse files
authored
Merge pull request #2307 from aws-samples/2254
Bumped nodejs version and clarified readme
2 parents d3875f0 + eaf53a8 commit b5786d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cognito-restapi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Important: this application uses various AWS services and there are costs associ
4343
4444
## Testing
4545
46-
The stack will output the **api endpoint**. Use *curl* to make an HTTP request to the API Gateway endpoint that includes a Header with the authorization token to test the Cognito User Pools Authorizer.
46+
Generate an identity token from your Cognito User Pool to use in the HTTP request. Next, note the **api endpoint** in the stack outputs. Use *curl* to make an HTTP request to the API Gateway endpoint that includes a Header with the identity token.
4747
4848
```
4949
curl -i https://{apiId}.execute-api.{region}.amazonaws.com/Prod -H "authorizationToken: {tokenProvidedByCognito}"

cognito-restapi/template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Description: Serverless patterns - Amazon API Gateway REST API with Cognito User
44

55
Globals:
66
Function:
7-
Runtime: nodejs16.x
7+
Runtime: nodejs20.x
88
CodeUri: src/
99

1010
Parameters:

0 commit comments

Comments
 (0)