AWS Athena (Pre-release)
Amazonβs serverless, interactive query service that lets you analyze data directly in Amazon S3 using standard SQL.
Supported Connection Methods
Available methods for connections to the target system from Lumi AI:
Supported Limits
The following are limits that can be configured for the system to moderate access and usage from users in Lumi AI:
Available Parameters
These properties are the essential source system connection properties that all queries are directed towards.
* Required parameters
Note: The Gateway parameter is common to all systems (when supported) and is only available when gateway is the selected connection method.
AWS Role ARN*
The ARN (Amazon Resource Name) of the IAM role that will be assumed by Lumi to run queries against Athena.
π Valid Examples
arn:aws:iam::123456789012:role/lumi-athena-query-runner
π Invalid Examples
123456789012:role/lumi-athena-query-runnerlumi-athena-query-runner
AWS Region*
AWS Region where Athena and S3 staging bucket resides in.
π Valid Examples
us-east-1us-west-2
π Invalid Examples
US-East-1North America
S3 Staging Directory*
The S3 URI (bucket + optional prefix) where Athena writes its query results
π Valid Examples
s3://my-athena-buckets3://my-athena-bucket/staging
π Invalid Examples
/s3/my-athena-bucketmy-athena-bucket
Database*
The Athena database name.
π Valid Examples
analyticsdefault
π Invalid Examples
AwsDataCatalog.analyticsanalytics.products
AWS External ID*
AWS External ID. Can be any arbitrary string that matches aws-external-id of the cross-account IAM role (see below).
π Valid Examples
6ee2f609-cb2c-4d66-b39b-a3a13985b622
π Invalid Examples
Empty string
System Permissions & Configuration
You will need to create cross-account IAM role whose trust policy allows Lumi's AWS account to run queries against Athena.
Create IAM policy with access to your Athena instance
Navigate to IAM -> Policies -> Create policy.
Select the JSON option and paste the following snippet, replacing
<your-data-bucket>with<your-athena-staging-bucket>with the name of your S3 Athena data bucket and S3 your staging (query results) bucket, respectively. /
Click Next.
Name the policy AthenaQueryPermissions and click Create Policy.
Create a Cross-Account IAM Role with the above IAM policy
Navigate to IAM β Roles β Create role.
Select Custom trust policy option and paste the following snippet, replacing
<lumi-account-id>with Lumi's Account ID (provided during onboarding) and<aws-external-id>with AWS external ID (can be any arbitrary string)
Click Next.
In the Permissions policies, search for AthenaQueryPermissions and select it.
Click Next.
Name the role LumiAI-athena-query-runner and click Create Role.
Last updated
Was this helpful?