简体   繁体   English

如何使用 AWS CloudFormation 连接到现有 RDS 数据库?

[英]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.

相关问题 如何更改 Postgresql 的 AWS RDS 中的“数据库名称”? - How can I change the "Database Name" in AWS RDS for Postgresql? 主用户无法连接到 Aurora 中的现有数据库 MySQL - RDS - Master user can't connect to an existing database in Aurora MySQL - RDS 如何将 MySql 数据库从 AWS RDS 连接到 datastudio - How to connect MySql Database from AWS RDS to datastudio 无法使用我的 Ip 连接到 AWS RDS,但可以使用任何地方 - Cant Connect to AWS RDS using My Ip, but can using Anywhere AWS:无法从我的机器连接到 RDS 数据库 - AWS: can't connect to RDS database from my machine 如何使用 AWS IAM 身份验证从 Java/Spring 应用程序连接到 AWS RDS MySQL? - How do I connect to AWS RDS MySQL from Java/Spring application using AWS IAM Authentication? 如何获取使用 AWS CLI 手动创建的 RDS 数据库实例的所有快照的名称? - How can I get the name of the all snapshot of RDS DB instance created manually using the AWS CLI? 为什么 AWS App runner 在可公开访问时无法连接到 RDS Postgres 数据库? - Why AWS App runner can't connect to RDS Postgres database when it is publicly accessible? 如何将 AWS Lambda 与多个 RDS 模式连接 - How to connect AWS Lambda with multiple RDS schemas HeidiSQL 无法连接到我的 RDS 数据库? - HeidiSQL can't connect to my RDS database?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM