-
Deploy cognito_sample.yaml to CloudFormation
Go to Cognito Management console, and do the following
- Get User Pool Id
- Get Application Client ID
- Get Application Client Secret
- Create User
-
Generate Auth secret
openssl rand -base64 32
-
Set environment variable
export HOST_URL=http://localhost:3000 export NEXTAUTH_SECRET=<Auth secret> export COGNITO_CLIENT_ID=<Application Client ID> export COGNITO_CLIENT_SECRET=<Application Client Secret> export COGNITO_ISSUER=https://cognito-idp.<reagion>.amazonaws.com/<User Pool Id>
COGNITO_ISSUER example is
https://cognito-idp.us-west-2.amazonaws.com/us-west-2_CvWvVEIV2
. -
Execute command
web-ui % npm run dev
-
Deploy cf-template-for-test.yaml (dynamodb-identity) to CloudFormation
-
Deploy cf-template.yaml (dynamodb-db) to CloudFormation
-
Deploy cognito_sample.yaml to CloudFormation
Go to Cognito Management console, and do the following
- Get User Pool Id
- Get Application Client ID
- Get Application Client Secret
- Create User
-
Generate Auth secret
openssl rand -base64 32
-
Set environment variable
export HOST_URL=http://localhost:3000 export DYNAMO_TABLE_PREFIX=<table prefix> export NEXTAUTH_SECRET=<Auth secret> export COGNITO_CLIENT_ID=<Application Client ID> export COGNITO_CLIENT_SECRET=<Application Client Secret> export COGNITO_ISSUER=https://cognito-idp.<reagion>.amazonaws.com/<User Pool Id>
COGNITO_ISSUER example is
https://cognito-idp.us-west-2.amazonaws.com/us-west-2_CvWvVEIV2
. -
Execute command
web-ui % npm run dev-dynamodb
After executing the above command and logging in, do to the following (To enable Catalog operation)
- Create a group (e.g.
Unicorn catalog owner
) on the Stamp web application - Go to DynamoDB management console, and add a record with the following content to the
Catalog
table- id : unicorn-rental-catalog
- ownerGroupId : groupId of the group generated in step
1
(seeGroup
table )
- Create a group (e.g.