Skip to content

run aws athena sql scripts either from CLI or as Lambda

License

Notifications You must be signed in to change notification settings

mikeplavsky/athena-cmd

Repository files navigation

When running as command line:

./run.sh /scripts/rows.sql

For running as AWS Lambda:

export ROLE=<IAM role which has an access to Athena and S3>
export ATHENA_S3_PATH=<s3 path to athena>
./deploy.sh

Lambda expects the input event:

{
    "query": "select count(*) from test"
}

About

run aws athena sql scripts either from CLI or as Lambda

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published