【发布时间】:2019-09-04 03:53:03
【问题描述】:
我正在尝试使用 AWS Cognito 用户池进行用户身份验证,但我似乎无法弄清楚如何从 serverless.yml 文件创建一个。我知道要创建其他资源,您可以执行以下操作:
resources:
Resources:
Table:
Type: "AWS::DynamoDB::Table" # Change this to "AWS::Cognito::UserPool"?
DeletionPolicy: Retain
Properties: # Change the properties here, but to what?
AttributeDefinitions:
-
AttributeName: id
AttributeType: S
KeySchema:
-
AttributeName: id
KeyType: HASH
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1
TableName: arn:aws:dynamodb:us-west-1:*:table/tablename
我假设我只需要将类型更改为"AWS:Cognito::UserPool" 并更改属性。但是,我不知道要改成什么。
【问题讨论】:
标签: amazon-web-services amazon-cognito serverless-framework