Skip to main content
Skip table of contents

Amazon Athena - Execute Query

Amazon Athena Template - Execute Query

Information about Alli Workflows' low-code Amazon Athena Execute Query template. Execute any SQL query against Amazon Athena.

Amazon Athena - Execute Query

Overview

Execute any SQL query against Amazon Athena. Perfect for creating multi-step SQL jobs, executing DML statements, or running scheduled queries.

Variables

NameReferenceTypeRequiredDefaultOptionsDescription
DatabaseATHENA_DATABASEAlphanumericNone-The name of the Athena database the run the query against.
QueryATHENA_QUERYAlphanumericNone-The SQL-style query to run against the Athena database.
S3 Log Bucket NameATHENA_BUCKET_NAMEAlphanumericNone-The S3 bucket to output the query logs into.
S3 Log Folder NameATHENA_LOG_FOLDERAlphanumericNone-The optional subdirectory within the S3 bucket to store query logs.
Access Key IDAWS_ACCESS_KEY_IDPasswordNone-The access key ID for programmatic IAM user used to download the file. See Authorization documentation for more information.
Secret Access KeyAWS_SECRET_ACCESS_KEYPasswordNone-The secret access key for programmatic IAM user used to download the file. See Authorization documentation for more information.
RegionAWS_DEFAULT_REGIONSelectus-east-2us-east-2

us-east-1

us-west-1

us-west-2

af-south-1

ap-east-1

ap-south-1

ap-northeast-3

ap-northeast-2

ap-southeast-1

ap-southeast-2

ap-northeast-1

ca-central-1

cn-north-1

cn-northwest-1

eu-central-1

eu-west-1

eu-west-2

eu-south-1

eu-west-3

eu-north-1

sa-east-1

me-south-1
The AWS region for the S3 bucket and IAM user.

YAML

Below is the YAML template

YAML

source:
  template: Amazon Athena - Execute Query
  inputs:
    ATHENA_DATABASE:
    ATHENA_QUERY:
    ATHENA_BUCKET_NAME:
    ATHENA_LOG_FOLDER:
    AWS_ACCESS_KEY_ID:
    AWS_SECRET_ACCESS_KEY:
    AWS_DEFAULT_REGION: us-east-2
  type: TEMPLATE
guardrails:
  retry_count: 1
  retry_wait: 0h0m0s
  runtime_cutoff: 1h0m0s
  exclude_exit_code_ranges:
    - 101
    - 102
    - 103
    - 104
    - 105
    - 106
    - 200
    - 249

      
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.