Execute query on Athena, then wait and output results as csv.
Usage of athena-query:
-out string
path/to/result/file (default "/dev/stdout")
-output-location string
s3://bucket/key/to/out/
-query string
path/to/query.txt
-stat string
output last stat (default "/dev/stderr")
-tsv
tsv
-version
show version
-work-group string
name of workgroup
# q.txt
select now()
$ path/to/athena-query -query q.txt \
-output-location s3://bucket/key/to/out/
- go 1.20
See LICENCE