fuelplus-insights-reloaded

Utility for embedding Amazon Quicksights based on a minimal configuration with tenantID and environment

Usage no npm install needed!

<script type="module">
  import fuelplusInsightsReloaded from 'https://cdn.skypack.dev/fuelplus-insights-reloaded';
</script>

README

fuelplus-insights is a small browser library that helps embedding Amazon Quicksight dashboards.

Installation

Install with NPM.

Run npm install fuelplus-insights-reloaded

Usage

import * as Insights from "fuelplus-insights";

Insights.initdashboard({
  dashboardId: "DASHBOARD_ID",
  region: "AWS_REGION", // for example: eu-central-1
  cognitoIdentityPoolId: "COGNITO_IDENTITY_POOL_ID", // For example: eu-central-1:xxx-xxxx-xxxx-xxxx
  cognitoAuthenticatedUserPoolId: "COGNITO_AUTHENTICATED_USER_POOL_ID", // For example: eu-central-1_xxxxxxxxx
  apiGatewayUrl: "GET_EMBED_URL", // For example: https://xxxxxxxx.execute-api.AWS_REGION.amazonaws.com/prod/getDashboardEmbedURL?
  cognitoAuthenticatedLogins: "COGNITO_AUTH_LOGINS", // For example: cognito-idp.AWS_REGION.amazonaws.com/COGNITO_AUTHENTICATED_USER_POOL_ID
  userArn: "USER_ARN", // Fro example: arn:aws:quicksight:AWS_REGION:xxxxxxxxxxx:user/default/Admin/
  token: "COGNITO_ID_TOKEN",
  container: "CONTAINER_CLASS_OR_ID", // For example: .app-data-container
  tenantId: "tenant ID",
  environment: "Environment",
});