我正在使用“ serverless-appsync-plugin”生成g Appsync Api和Cogntio Userpool以及联合身份,除“ IdentityPoolRoleMap”外,其他所有内容均已正确部署并且工作正常,
“ ServerlessError:发生错误:IdentityPoolRoleMap-空(服务:AmazonCognitoIdentity;状态代码:500;错误代码:InternalFailure;)”
添加IdentityPoolRoleMap的示例
IdentityPoolRoleMap:
Type: AWS::Cognito::IdentityPoolRoleAttachment
Properties:
IdentityPoolId: { Ref: IdentityPool }
Roles:
unauthenticated: { Fn::GetAtt: [ UnauthRole, Arn ]}
authenticated: { Fn::GetAtt: [ AuthRole, Arn ]}
注意:IdentityPool,UnauthRole和AuthRole已正确创建。