Reputation: 68
So I'm new to AWS, I created a couple lambdas and download the JS SDK so I can make requests and finally render everything I need on my VueJS project. I'm also using Cognito for authentication.
My questions are: Do I REALLY need to have "apigClientjs" inside my project? If there's no other way, how do I make requests?
Yes, I read the whole thing on AWS but I'm still confused.
Upvotes: 1
Views: 5007
Reputation: 933
You can use the package aws-sdk
https://www.npmjs.com/package/aws-sdk
Upvotes: 1
Reputation: 78842
API Gateway can optionally generate an SDK from your API. No, you don't have to generate or use this SDK.
A very common practice, possibly the most common practice, is to simply front your Lambda functions with API Gateway and then use standard HTTP client libraries, such as request or axios to make HTTP requests to your Lambda functions.
Upvotes: 0