Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cognito-restapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Important: this application uses various AWS services and there are costs associ

## Testing

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.
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.

```
curl -i https://{apiId}.execute-api.{region}.amazonaws.com/Prod -H "authorizationToken: {tokenProvidedByCognito}"
Expand Down
2 changes: 1 addition & 1 deletion cognito-restapi/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Description: Serverless patterns - Amazon API Gateway REST API with Cognito User

Globals:
Function:
Runtime: nodejs16.x
Runtime: nodejs20.x
CodeUri: src/

Parameters:
Expand Down