Skip to content

Latest commit

 

History

History

quick_sight

QuickSight Connector

This connector extracts technical metadata from AWS QuickSight using the boto3 library.

Setup

We recommend creating a dedicated AWS IAM user for the crawler with limited permissions based on the following IAM policy:

{
    "Version": "2012-10-17",
    "Statement":
    [
        {
            "Effect": "Allow",
            "Action":
            [
                "quicksight:DescribeAnalysis",
                "quicksight:DescribeDashboard",
                "quicksight:DescribeDataSource",
                "quicksight:DescribeDataSet",
                "quicksight:DescribeDataSetRefreshProperties",
                "quicksight:DescribeFolder",
                "quicksight:DescribeUser",
                "quicksight:ListAnalyses",
                "quicksight:ListDashboards",
                "quicksight:ListDataSources",
                "quicksight:ListDataSets",
                "quicksight:ListFolders",
                "quicksight:ListUsers",
            ],
            "Resource":
            [
                "*"
            ]
        }
    ]
}

Config File

Create a YAML config file based on the following template.

Required Configurations

You must specify an AWS user credential to access QuickSight API. You can also specify a role ARN and let the connector assume the role before accessing AWS APIs.

aws:
  access_key_id: <aws_access_key_id>
  secret_access_key: <aws_secret_access_key>
  region_name: <aws_region_name>
  assume_role_arn: <aws_role_arn>  # If using IAM role
aws_account_id: <quick_aws_account_id>

Optional Configurations

Dashboard Filter

You can optionally specify a list of dashboard IDs to include or exclude in the output.

filter:
  include_dashboard_ids:
    - <dashboard_id_1>
    - <dashboard_id_2>
  exclude_dashboard_ids:
    - <dashboard_id_3>
    - <dashboard_id_4>

If the filter is set, only the dashboards specified in the filter and the associated data sets will be included in the output. Otherwise, all dashboards and data sets will be included.

Output Destination

See Output Config for more information.

Testing

Follow the Installation instructions to install metaphor-connectors in your environment (or virtualenv).

Run the following command to test the connector locally:

metaphor quick_sight <config_file>

Manually verify the output after the run finishes.