我已经试着想了一段时间了。我在RDS中有我的MySQL实例,我试图用amplify api add-graphql-datasource将它添加为datasource,但是我得到了一个错误:
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: eu-west-2
No properly configured Aurora Serverless clusters found.
TypeError: Cannot destructure property 'selectedClusterArn' of '(intermediate value)' as it is undefined.
at serviceWalkthrough (/home/hutber/.nvm/versions/node/v13.8.0/lib/node_modules/@aws-amplify/cli/node_modules/amplify-category-api/src/provider-utils/awscloudformation/service-walkthroughs/appSync-rds-walkthrough.js:55:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Object.executeAmplifyCommand (/home/hutber/.nvm/versions/node/v13.8.0/lib/node_modules/@aws-amplify/cli/node_modules/amplify-category-api/src/index.ts:188:3)
at executePluginModuleCommand (/home/hutber/.nvm/versions/node/v13.8.0/lib/node_modules/@aws-amplify/cli/src/execution-manager.ts:161:3)
at Object.executeCommand (/home/hutber/.nvm/versions/node/v13.8.0/lib/node_modules/@aws-amplify/cli/src/execution-manager.ts:26:5)
at Object.run (/home/hutber/.nvm/versions/node/v13.8.0/lib/node_modules/@aws-amplify/cli/src/index.ts:86:5)这让我想,我做错了吗?这是你通常将MySQL添加到app-sync的方式吗?
发布于 2020-10-03 01:11:55
问题是,当在您的秘密管理器中创建您的秘密时,您的用户名和密码需要与您的数据库/用户名和密码完全匹配。
我不清楚这个用户名和密码是否是数据库的用户名和密码。现在,一切都正常了,我已经添加了MySQL数据存储。
现在我必须弄清楚如何使用它:P

https://stackoverflow.com/questions/64163564
复制相似问题