awslabs / rds-support-tools

Amazon RDS Support Tools contains utilities, sql, scripts and views which are useful in a RDS environment
https://aws.amazon.com/rds/
Apache License 2.0
217 stars 229 forks source link

Lambda handler #80

Closed tammyllf closed 3 years ago

tammyllf commented 3 years ago

Hi,

This code work perfectly in local machine and push to S3 bucket. However, I would like to deploy this to aws lambda function, however, I don't seem able to solve the lambda_handler name issue. Appreciate, if you could help.

deanah commented 3 years ago

Here is a demo for connecting to AWS dbs from a URL (i.e. connecting from API Gateway via Lambda):. There is an extensive guidance section: https://aws.amazon.com/blogs/database/query-your-aws-database-from-your-serverless-application/

tammyllf commented 3 years ago

Hi Deanah,

Thanks for the suggestion, I'm new to lambda function, and not familiar with API gateway via Lambda. Any alternative suggestion from you? Lambda function would be my priority choice.

Thanks

deanah commented 3 years ago

API Gateway is just one way to invoke Lambda. This is the best choice if you want to do something like query the database by clicking on a link on your static website.

You can use the invocation method of your choice.

From: tammyllf @.> Sent: Tuesday, June 08, 2021 10:56 PM To: awslabs/rds-support-tools @.> Cc: Holmer, Deana @.>; Comment @.> Subject: Re: [awslabs/rds-support-tools] Lambda handler (#80)

Hi Deanah,

Thanks for the suggestion, I'm new to lambda function, and not familiar with API gateway via Lambda. Any alternative suggestion from you? Lambda function would be my priority choice.

Thanks

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/awslabs/rds-support-tools/issues/80#issuecomment-857401005, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE6RCBMEXBTQWMMTYRTVYSTTR3655ANCNFSM46JX4PJA.

tammyllf commented 3 years ago

Hi Deanah,

I found solution for this, thanks for sharing.