Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 618 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 618 Bytes

Generate AWS_IAM credentials from Cognito credentials

setup 🦄

yarn

install dependencies 🍔

yarn start

run serverless in offline mode 🥂

dashboard: https://app.serverless.com/jitunayak/apps/poc/cognito-api-gateway/dev/ap-south-1
endpoints:
  POST - http://localhost:3000/login
  POST - http://localhost:3000/secure
functions:
  open: cognito-api-gateway-dev-open
 curl --location --request POST 'http://localhost:3000/login' \
    --header 'Content-Type: application/json' \
    --data-raw '{
        "username": {username},
        "password": {password},
    }'