[英]How can I connect to an existing RDS database using AWS CloudFormation?
I am building a serverless app and want to connect to an existing database.我正在构建无服务器应用程序并希望连接到现有数据库。 How would I go about doing this?
我将如何 go 这样做?
Connection to the DB is not something infra-related but functional.与数据库的连接与基础设施无关,而是功能性的。 So you will have in the code the connection to the DB and call to cursors.
因此,您将在代码中连接到数据库并调用游标。
Exception: If you use app-sync for your API with direct calls (not lambda), you can declare the DB and make calls to it directly.例外:如果您通过直接调用(不是 lambda)为 API 使用 app-sync,您可以声明数据库并直接调用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.