athenacli icon indicating copy to clipboard operation
athenacli copied to clipboard

Required argument `s3_staging_dir` or `work_group` not found.

Open mooreniemi opened this issue 2 years ago • 2 comments

Required argument s3_staging_dir or work_group not found.

Even though these have been defined in the ~/.athenacli/athenaclirc. Screenshot for proof:

Xnip2023-08-05_16-14-11

I'm working around this by sending in the arguments but is sub-optimal. Could this be because I am not defining aws access key and secret in the config? (I get those from the defined profile I use.)

mooreniemi avatar Aug 05 '23 20:08 mooreniemi

I don't have AWS account to test now. Could you try AWS_ATHENA_S3_STAGING_DIR and AWS_ATHENA_WORK_GROUP environment instead?

https://athenacli.readthedocs.io/en/latest/awsconfig.html

zzl0 avatar Aug 06 '23 13:08 zzl0

Yes, those environment variables when exported work.

mooreniemi avatar Aug 07 '23 00:08 mooreniemi