amazon-cognito - 无服务器企业部署
问题描述
我最近更新到 v1.44.0 并使用了@serverless/enterprise-plugin
,现在无法部署。我只是想创建一个用户池,但不断收到错误消息。
An error occurred: EnterpriseLogAccessIamRole - Policy statement must contain resources. (Service: AmazonIdentityManagement; Status Code: 400; Error Code: MalformedPolicyDocument; Request ID: dc158686-378c-4d01-97fb-1414d55a735d)
无服务器.yml
tenant: [omitted]
app: [omitted]
service: auth
frameworkVersion: ">=1.44.0"
plugins:
- '@serverless/enterprise-plugin'
provider:
name: aws
runtime: nodejs8.10
region: us-east-1
custom:
stage: ${opt:stage, self:provider.stage}
cognito:
app:
userPool: ${self:service}-app-user-pool-${self:custom.stage}
identityPool: AppIdentityPoolDev
resources:
Resources:
AppUserPool:
Type: AWS::Cognito::UserPool
Properties:
UserPoolName: ${self:custom.cognito.app.userPool}
UsernameAttributes:
- email
AutoVerifiedAttributes:
- email
MobileAppClient:
Type: AWS::Cognito::UserPoolClient
Properties:
ClientName: ${self:service}-mobile-app-client-${self:custom.stage}
UserPoolId:
Ref: AppUserPool
GenerateSecret: true
Outputs:
AppUserPool:
Value:
Ref: AppUserPool
MobileAppClient:
Value:
Ref: MobileAppClient
解决方案
推荐阅读
- amazon-web-services - 使用同步 StepFunction 处理 API 网关中的错误
- forms - 浏览器似乎正在缓存 POST 请求
- graphql - 配置 Amplify 以允许 API 中的动态属性
- python - webdriver中部分链接文本的可行定位器策略
- python - ValueError:非标量 numpy.ndarray 不能用于填充 - CuPy
- swift - Struct v Class - TableView 隐藏数据
- isabelle - Isabelle 可以用来画推理树吗?
- python - 设置 pcolormesh 彩条的中点
- python - Tkinter 初学者问题 - 如何匹配不同小部件之间的大小?
- java - OpenCV Undistort 裁剪图像