【发布时间】:2019-05-26 19:43:20
【问题描述】:
我一直在关注https://serverless-stack.com/chapters/configure-cognito-user-pool-in-serverless.html 的无服务器教程
我有以下无服务器 yaml 代码段
Resources:
CognitoUserPool:
Type: AWS::Cognito::UserPool
Properties:
# Generate a name based on the stage
UserPoolName: ${self:custom.stage}-moochless-user-pool
# Set email as an alias
UsernameAttributes:
- email
AutoVerifiedAttributes:
- email
CognitoUserPoolClient:
Type: AWS::Cognito::UserPoolClient
Properties:
# Generate an app client name based on the stage
ClientName: ${self:custom.stage}-user-pool-client
UserPoolId:
Ref: CognitoUserPool
ExplicitAuthFlows:
- ADMIN_NO_SRP_AUTH
# >>>>> HOW DO I GET THIS VALUE IN OUTPUT <<<<<
GenerateSecret: true
# Print out the Id of the User Pool that is created
Outputs:
UserPoolId:
Value:
Ref: CognitoUserPool
UserPoolClientId:
Value:
Ref: CognitoUserPoolClient
#UserPoolSecret:
# WHAT GOES HERE?
我将所有其他配置变量导出到一个 json 文件(供移动应用程序使用,因此我需要密钥)。
如何让生成的密钥出现在我的输出列表中?
【问题讨论】:
标签: amazon-web-services amazon-cognito serverless