简体   繁体   English

如何添加 AWS RDS 数据库进行放大

[英]How to add a AWS RDS database to amplify

I am currently working with amplify and GraphQL instance which is fairly simple.我目前正在使用相当简单的 amplify 和 GraphQL 实例。 I then realised that I need to use things like sum() `average() etc as I am building a football website which uses a lot of stats and writing custom resolvers for all of this will be too much work.然后我意识到我需要使用sum() `average() 等东西,因为我正在构建一个使用大量统计数据的足球网站,并且为所有这些编写自定义解析器将是太多的工作。

So I have created a Aurora MySQL database and am trying to add it.所以我创建了一个 Aurora MySQL 数据库并尝试添加它。 It is hosted in Region eu-west-2 but it will not come up when trying to add it:它托管在区域eu-west-2但在尝试添加时不会出现:

hutber@hutber:/var/www/unsal.co.uk$ amplify api add-graphql-datasource
Using datasource: Aurora Serverless, provided by: awscloudformation
? Provide the region in which your cluster is located: 
  us-east-1 
  us-east-2 
  us-west-2 
  ap-northeast-1 
❯ eu-west-1 

I believe by adding MySQL I will be able to then query this MySQL instance via my GQL service.我相信通过添加 MySQL,我将能够通过我的 GQL 服务查询这个 MySQL 实例。

通过将放大升级到最新版本,此问题已得到修复:

amplify -v: 4.29.4

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM