我正在尝试编写CloudFormation模板,以使用Google身份验证和使用预先存在的角色创建新的Cognito身份池.
此代码使用Google身份验证创建新的标识池 -
Resources:
cognitoid:
Type: "AWS::Cognito::IdentityPool"
Properties:
"AllowUnauthenticatedIdentities": false
"SupportedLoginProviders": { "accounts.google.com": "<Google client id>" }
Run Code Online (Sandbox Code Playgroud)
对于角色,AWS::Cognito::IdentityPool在附加角色的属性中没有任何内容.