Skip to content

full-stack-serverless/cdk-authentication

Repository files navigation

CDK Authentication

This CDK project deploys an Amazon Cognito User Pool configured to create the infrasstructure for a basic application for user authentication. It is paired with a React front-end for a full-stack serverless project.

Deploying the back end

  1. Clone the repo
git clone [email protected]:full-stack-serverless/cdk-authentication.git
  1. Change into the cdk-authentication directory

  2. Install dependencies in main folder:

npm install

# or

yarn
  1. Deploy to AWS
cdk deploy

Once the project has been deployed, you'll be given the resources needed to configure the client-side React application.

Outputs:
CdkAppsyncChatStack.UserPoolClientId = your_userpool_client_id
CdkAppsyncChatStack.UserPoolId = us-east-1_your_userpool_id

Deploying the front end

  1. Clone the client application
git clone https://github.com/full-stack-serverless/react-custom-authentication-aws.git
  1. Change into the client directory and install dependencies:
cd react-custom-authentication-aws

npm install

# or

yarn
  1. Open src/aws-exports-example.js and update with the outputs from CDK.

  2. Rename aws-exports-example.js to aws-exports.js.

  3. Run the app

npm start

About

Authentication back end built with CDK and Amazon Cognito

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published