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

What does the lambda function do? #1

Open
tommedema opened this issue Aug 4, 2019 · 1 comment
Open

What does the lambda function do? #1

tommedema opened this issue Aug 4, 2019 · 1 comment

Comments

@tommedema
Copy link

There's a mysterious lambda function in the cloudformation file that I cannot wrap my mind around. It's been explained as:

Creates a new AWS Lambda function (Node.js) with three environment variables (database name, cluster arn, and secrets arn) for connecting directly to your serverless database and making SQL statements through HTTP requests

Why would the user need to create a separate lambda function to accept HTTP requests? Isn't the whole point of the Data API that Aurora can start accepting HTTP requests? So why would developers themselves have to create another HTTP endpoint?

Is there a way for us to inspect the lambda code at bucket cloudformation-templates-useast-1 and key rds-aurora-serverless/rds-data-api-lambda-function.zip?

@TheAshwanik
Copy link

TheAshwanik commented Jan 22, 2022

I am confused with this too. But I guess it could be due to the fact that , DATA API is available for only Aurora serverless DB , And you can't give an Amazon Aurora Serverless DB cluster a public IP address. You can access an Aurora Serverless DB cluster only from within a virtual private cloud (VPC), based on the Amazon VPC service. And if we still need to access the DATA API, from outside the VPC, we may need to create a lambda, expose via API gateway and pass on SQL statement for lambda to execute the DATA API. Just my thoughts.. .

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