binxio / cfn-mysql-user-provider

A CloudFormation custom provider for managing MySQL users
Apache License 2.0
22 stars 19 forks source link

aurora serverless data api support #9

Open ragogitpub opened 4 years ago

ragogitpub commented 4 years ago

Hello

Any plan on adding aurora serverless data api support ?

We are planning on using serverless. But the lambdas inside VPC have this weird problem and has gotten us into trouble.

https://forum.serverless.com/t/very-long-delay-when-doing-sls-remove-of-lambda-in-a-vpc/2535

if the data api can be used then we could get by without putting the custom resource inside VPC ?

Thank you

https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html

mvanholsteijn commented 4 years ago

The data api can only be used for aurora serverless databases. It requires such a big change to the provider, that it warrants creating a new one, specific for aurora serverless.

It estimate it to be a good 2-3 days work, which I cannot spare at the moment. If you have a business case for it, let me know.

Nemo64 commented 4 years ago

RDS data also has some other quirks like that you must use Secrets. However, since any lambda environment can talk to mysql over rds-data without libraries, it is fairly easy to just write small inline lambdas to create users and database.

I wrote a little something here: https://www.marco.zone/shared-aurora-serverless-using-cloudformation#implement-custom-resources