Question
Answer
For using RDS with serverless technologies like SST, several options could be considered. One is to use a VPN to connect to the RDS instance. However, this can be tricky and requires several steps. Another alternative is to use AWS's Data API for RDS, which provides a more secure way to use AWS Lambda and enables access to the DB cluster without needing to configure a Lambda function to access resources in a virtual private cloud (VPC). However, the structure of the results can be slightly bizarre, and the use of ORM might not be supported with Data API. Using a VPC for lambdas and RDS can create some operational overhead and doesn't offer any added security boundary over using entirely managed services gated by IAM auth. Still, if VPCs are used, they will need to use a managed NAT which is billed 24/7 and not in a serverless way. Other alternatives include using a true serverless database like DynamoDB or Planetscale, particularly if a relational database is needed. However, DynamoDB requires changing how to think about a database, and it doesn't have many features out of the box, which might require implementing features in the application layer.
Kevin Baker
09/06/2021, 3:03 PMAdrián Mouly
09/06/2021, 3:20 PMAdrián Mouly
09/06/2021, 3:23 PMRoss Coundon
09/06/2021, 3:24 PMRoss Coundon
09/06/2021, 3:25 PMAdrián Mouly
09/06/2021, 3:25 PMRoss Coundon
09/06/2021, 3:25 PMRoss Coundon
09/06/2021, 3:27 PMKevin Baker
09/06/2021, 3:36 PMKevin Baker
09/06/2021, 3:41 PMAdrián Mouly
09/06/2021, 3:56 PMAdrián Mouly
09/06/2021, 3:56 PMFrank
Frank
Adrián Mouly
09/06/2021, 4:36 PMAdrián Mouly
09/06/2021, 4:37 PMthdxr
09/06/2021, 4:40 PMthdxr
09/06/2021, 4:40 PMAdrián Mouly
09/06/2021, 4:41 PMAdrián Mouly
09/06/2021, 4:41 PMthdxr
09/06/2021, 4:41 PMAdrián Mouly
09/06/2021, 4:42 PMthdxr
09/06/2021, 4:42 PMthdxr
09/06/2021, 4:42 PMKevin Baker
09/06/2021, 4:42 PMAdrián Mouly
09/06/2021, 4:42 PMAdrián Mouly
09/06/2021, 4:43 PMAdrián Mouly
09/06/2021, 4:43 PMthdxr
09/06/2021, 4:44 PMthdxr
09/06/2021, 4:44 PMAdrián Mouly
09/06/2021, 4:45 PMAdrián Mouly
09/06/2021, 4:45 PMthdxr
09/06/2021, 4:45 PMthdxr
09/06/2021, 4:45 PMKevin Baker
09/06/2021, 4:45 PMAdrián Mouly
09/06/2021, 4:46 PMthdxr
09/06/2021, 4:46 PMAdrián Mouly
09/06/2021, 4:46 PMKevin Baker
09/06/2021, 4:47 PMKevin Baker
09/06/2021, 4:47 PMthdxr
09/06/2021, 4:48 PMKevin Baker
09/06/2021, 4:49 PMthdxr
09/06/2021, 4:49 PMKevin Baker
09/06/2021, 4:50 PMthdxr
09/06/2021, 4:51 PMKevin Baker
09/06/2021, 4:53 PMKevin Baker
09/06/2021, 4:53 PMthdxr
09/06/2021, 4:55 PMKevin Baker
09/06/2021, 4:56 PMthdxr
09/06/2021, 4:57 PMRoss Coundon
09/06/2021, 7:02 PMRoss Coundon
09/06/2021, 7:11 PM