You can view AWS Athena structure and execute queries to AWS Athena on the web by using Minerva.
$ cd web
$ grunt less
$ cd web
Create config.json.
$ vi config.json
{
"base": ${API-GW-ENDPOINT}
}
$ webpack
$ cd athena-bridge
$ ./gradle buildZip
Create config.json.
$ vi athena-bridge/src/main/kotlin/athena/config.json
{
"driver": "jdbc:awsathena://athena.${REGION}.amazonaws.com:443",
"bucket": "s3://${BUCKET}/logs",
"access_key": "${ACCESS-KEY}",
"secret_key": "${SECRET-KEY}"
}
$ cd athena-bridge
$ aws lambda create-function \
--function-name athena-query \
--zip-file fileb://build/distributions/athena-bridge-1.0.zip \
--runtime java8 \
--handler athena.Structure::handler \
--region ${REGION} \
--role ${ROLE-ARN} \
--timeout ${TIMEOUT} \
--memory-size ${MEMORY} \
--profile ${PROFILE} \
$ cd athena-bridge
$ aws lambda create-function \
--function-name athena-structure \
--zip-file fileb://build/distributions/athena-bridge-1.0.zip \
--runtime java8 \
--handler athena.Structure::handler \
--region ${REGION} \
--role ${ROLE-ARN} \
--timeout ${TIMEOUT} \
--memory-size ${MEMORY} \
--profile ${PROFILE}
Set on your AWS management console.