Skip to content

An easy to manage project for streamlining access to CloudWatch Dashboards.

License

Notifications You must be signed in to change notification settings

skpr/cognito-to-dashboard

Repository files navigation

Cognito to CloudWatch Dashboard

📋 Vet 📋 Format Test Lint

Goal of this Project

An easy to manage project for streamlining access to CloudWatch Dashboards.

Flow

The following diagram outlines the flow of requests.

sequenceDiagram
    Browser->>+API: Browse to link provided by documenation or CLI.
    API->>+Config: Check dashboard is in allowed list. Store dashboard name keyed by state value.
    API->>-Browser: Return a redirect to the Cognito Hosted UI containing state key.
    Browser->>+Cognito: Login using Hosted UI.
    Cognito->>-Browser: Returns redirect to callback URL with state key.
    Browser->>+API: Send request to callback URL. Validate state key and lookup dashboard name from storage.
    API->>+Cognito: Requests temporary credentials using code converted to token.
    API->>-Browser: Return direct federated login link to CloudWatch Dashboard.
    Browser->>+CloudWatch: Follow federated login link to CloudWatch Dashboard.
Loading

Configuration

See defaults.env for environment variables.

About

An easy to manage project for streamlining access to CloudWatch Dashboards.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages