From eaf53a8058d4d1bcafbd54f1714ee0142070780a Mon Sep 17 00:00:00 2001 From: Mike Ellis Date: Mon, 10 Jun 2024 06:43:34 -0400 Subject: [PATCH] Bumped nodejs version and clarified readme --- cognito-restapi/README.md | 2 +- cognito-restapi/template.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cognito-restapi/README.md b/cognito-restapi/README.md index 44891a07c..a5503e437 100644 --- a/cognito-restapi/README.md +++ b/cognito-restapi/README.md @@ -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}" diff --git a/cognito-restapi/template.yaml b/cognito-restapi/template.yaml index e77dd260b..7c2f8daa9 100644 --- a/cognito-restapi/template.yaml +++ b/cognito-restapi/template.yaml @@ -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: