Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 无法启动API模拟终结点错误:CloudFormation堆栈参数rdsRegion缺少默认值_Amazon Web Services_Aws Amplify_Aws Appsync - Fatal编程技术网

Amazon web services 无法启动API模拟终结点错误:CloudFormation堆栈参数rdsRegion缺少默认值

Amazon web services 无法启动API模拟终结点错误:CloudFormation堆栈参数rdsRegion缺少默认值,amazon-web-services,aws-amplify,aws-appsync,Amazon Web Services,Aws Amplify,Aws Appsync,我已将我的RDS MySQL数据存储添加到appsync,如下所示: 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 ? Select th

我已将我的RDS MySQL数据存储添加到appsync,如下所示:

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
? Select the Aurora Serverless cluster that will be used as the data source for your API: unsal
? Select the secret used to access your Aurora Serverless cluster: hutber
✔ Fetched Aurora Serverless cluster.
? Select the database to use as the datasource: sys
一切顺利完成:

已在本地成功添加Aurora无服务器数据源

Some next steps:
"amplify push" will build all your local backend resources and provision it in the cloud
"amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud


The following types do not have '@auth' enabled. Consider using @auth with @model
     - Division
     - League
     - Season
Learn more about @auth here: https://docs.amplify.aws/cli/graphql-transformer/directives#auth


GraphQL schema compiled successfully.

Edit your schema at /var/www/unsal.co.uk/amplify/backend/api/unsalcouk/schema.graphql or place .graphql files in a directory at /var/www/unsal.co.uk/amplify/backend/api/unsalcouk/schema
但是,在启动模拟服务时,我得到以下信息:

Failed to start API Mock endpoint Error: CloudFormation stack parameter rdsRegion is missing default value

要修复上述错误,您可以在
amplify/backend/api/下的
parameters.json
文件中为
rdsRegion
rdsClusterIdentifier
rdsscretstorearn
提供值