CLI SQL for AWS Athena using SQL Workbench
1.1K
The AWS account requires access to Athena and the staging dir where intermediary files are stored.
docker run --rm vladnem/athena-workbench \
-url=jdbc:awsathena://athena.<AWS Athena Region>.amazonaws.com:443/AwsDataCatalog/<Database> \
-connectionProperties='s3_staging_dir=s3://<Staging Bucket>' \
-username=<AWS Access Key> \
-password=<AWS Secret Key> \
-command='select timestamp, elbname, requestip, requestport, backendip from elb_logs limit 10;'
docker run --rm vladnem/athena-workbench \
-url=jdbc:awsathena://athena.<AWS Athena Region>.amazonaws.com:443/AwsDataCatalog/<Database> \
-connectionProperties='s3_staging_dir=s3://<Staging Bucket>' \
-username=<AWS Access Key> \
-password=<AWS Secret Key> \
-command="`cat scripts/test.sql`"
Content type
Image
Digest
Size
54 MB
Last updated
almost 10 years ago
docker pull vladnem/athena-workbench