Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 Path specification required if using athena-express on EKS deployment #91

Open
roych98 opened this issue Nov 14, 2022 · 2 comments
Open

Comments

@roych98
Copy link

roych98 commented Nov 14, 2022

Hey, so long story short, I have a nodejs application which is deployed on an EKS cluster. All nodes have security policies to be able to access S3 directly without having to have an accessKeyId specified within the AWS Config.

I noticed that if I try to construct an AthenaExpress object without specifying an S3 path, an error is thrown as follows:
throw new TypeError( "AWS object not present or incorrect in the constructor" );
From ./lib/helpers.js within the athena-express project.

If I do specify and S3 path, everything works flawlessly. So I figured that the problem lies within init.aws.config.credentials.accessKeyId which is most undefined (Because I don't even need to declare an AWS Config anywhere in the code because my code is running within AWS infrastructure and I allow the communication between my EKS nodes and S3), and thus the error.

Willing to share more information if needed. Thanks.

@ghdna
Copy link
Owner

ghdna commented Nov 15, 2022

Right... it assumes accesskeyId is present. I can remove that piece.

@roych98
Copy link
Author

roych98 commented Nov 15, 2022

Awesome, thanks. Otherwise the tradeoff would be that if you use an EKS deployment you just have to specify an S3 path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants