Giter Site home page Giter Site logo

amazon-security-lake-quicksight's Introduction

Table of Contents

  1. About this Repo
  2. Usage Guide
  3. Examples
  4. Cost & Performance
  5. Dashboard Customization
  6. License

About this Repo

This repository a combinatination of CDK tools and scripts which can be used to create the required AWS objects and deploy basic datasources, datasets, analysies, dashboards, and user groups to Quicksight with respect to Amazon Security Lake.

We welcome contributions to this repo in the form of fixes to existing examples or addition of new examples. For more information on contributing, please see the CONTRIBUTING guide.

Prerequisites

Solution Overview

Solution Overview

Usage Guide

Edit cdk-lakeformation-permissions/source/cdk.json using the values for your specific Amazon Security Lake and Amazon Quicksight Instance:

  1. rollup_region - The aggregate region used for rollup in Amazon Security Lake. This field require the use of an underscore rather than dash (example: us_east_1 rather than us-east-1).

  2. region - The current region where this solution is being deployed to.

  3. slregion - The region where the referenced Security Lake tables reside.

  4. LakeFormationAdminRoleArn - The Admin Role ARN used in AWS Lake Formation.

  5. SecurityLakeAccountID - The AWS Account ID which has provided the resource share to its security lake assets.

  6. AWSAccountID - The AWS Account ID in which this solution is being deployed to.

  7. QuicksightUserARN - The AWS Quicksight ARN of the Quicksight account in which this solution is being deployed to.

     {
       "app": "python3 app.py",
       "context": {
         "rollup_region": "<region>",
         "region": "<region>",
         "slregion": "<region>",
         "LakeFormationAdminRoleARN": "arn:aws:iam::123456789012:role/<Rolename>",
         "SecurityLakeAccountID": 123456789012,
         "AWSAccountID":555555555555,
         "QuickSightUserARN": "arn:aws:quicksight:<Region>:123456789012:user/default/<PrincipalId>"   
       }
     }
    

To manually create a virtualenv on MacOS and Linux:

$ python3 -m venv .env

After the init process completes and the virtualenv is created, you can use the following step to activate your virtualenv.

$ source .env/bin/activate

If you are a Windows platform, you would activate the virtualenv like this:

% .env\Scripts\activate.bat

Once the virtualenv is activated, you can install the required dependencies.

$ pip install -r requirements.txt

Set environment variables or Specifies the name of the AWS CLI profile with the credentials and options to use.

export AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE
export AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
export AWS_DEFAULT_REGION=us-east-1

At this point you can run script to synthesize the CloudFormation template and deploy AWS Lake Formation permissions and QuickSight dashboards.

$ qsdeploy.sh

Examples

	{
	  "app": "python3 app.py",
	  "context": {
	    "rollup_region": "<region>",
	    "region": "<region>",
	    "slregion": "<region>",
	    "LakeFormationAdminRoleARN": "arn:aws:iam::123456789012:role/<Rolename>",
	    "SecurityLakeAccountID": 123456789012,
	    "AWSAccountID":555555555555,
	    "QuickSightUserARN": "arn:aws:quicksight:<Region>:123456789012:user/default/<PrincipalId>"   
	  }
	}

Run

qsdeploy.sh

Solution Overview

Solution Overview

Solution Overview

Quicksight Cost

Please refer to the following on Amazon Quicksight cost: https://aws.amazon.com/quicksight/pricing/.

Dashboard Customization

This solution has been deisnged as a generally available solution for users who wish to visualize their Amazon Security Lake data. For users with specific visualization needs, the quicksight analysis has been provided in addition to the dashboards. In Amazon QuickSight, an analysis is the same thing as a dashboard, except that it can only be accessed by the authors you choose. You can keep it private, and When and if you decide to publish it, the it can be edited to add or remove visuals before being shared as a new dashboard.For more information on how to customize the analysis provided by this solution, please refer to the following: https://docs.aws.amazon.com/quicksight/latest/user/working-with-an-analysis.html.

Official Resources

License

This library is licensed under the MIT-0 License.

amazon-security-lake-quicksight's People

Contributors

adplotzk avatar ajarawat1992 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.