Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

jzoric/cognito-user-manager-ui

Repository files navigation

Application to manage AWS Cognito users

Intro

This application is using API configured by cognito-user-manager-backend project.

Be sure to deploy API before running this application.

Requirements

IAM User

Policy summary
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "cloudwatch:*",
                "s3:*",
                "logs:*",
                "lambda:*",
                "dynamodb:*",
                "events:*",
                "cloudformation:*",
                "cognito-idp:*",
                "cognito-sync:*",
                "cognito-identity:*",
                "tag:GetResources",
                "iam:*"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "execute-api:Invoke"
            ],
            "Resource": "arn:aws:execute-api:*:*:*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "apigateway:*"
            ],
            "Resource": "arn:aws:apigateway:*::/*"
        }
    ]
}

Setup and run

  • Clone this repo

  • Run yarn

  • Change bucket name appName: <your-unique-app-name> in serverless.yml

  • Run sls deploy

  • Run sls export-env

  • Run sls client deploy --no-confirm

By default it will create a stack in eu-central-1 region with dev stage.

Screenshots

signin
Figure 1. Sign in

user pools
Figure 2. User pools

attributes
Figure 3. Update attributes