我只是希望能够打印出我的应用程序配置所需的信息。从基础开始:UserPoolId。输出不起作用。有谁知道为什么?
service: test-ota-fmw
provider:
name: aws
runtime: nodejs8.10
stage: dev
custom:
stage: ${opt:stage, self:provider.stage}
variables:
facebook_app_id: fbappid
google_app_id: xxxxx.apps.googleusercontent.com
resources:
# Cognito
# - ${file(resources/cognito-user-pool.yml)}
# - ${file(resources/cognito-identity-pool.yml)}
Resources:
CognitoUserPool:
Type: AWS::Cognito::UserPool
Properties:
UserPoolName: mgnio-${self:custom.stage}-user-pool
UsernameAttributes:
- email
AutoVerifiedAttributes:
- email
CognitoUserPoolClient:
Type: AWS::Cognito::UserPoolClient
Properties:
ClientName: mgnio-${self:custom.stage}-mobile-app-client
GenerateSecret: true
UserPoolId:
Ref: CognitoUserPool
Outputs:
UserPoolId:
Value:
Ref: CognitoUserPool
输出
这是运行后的输出 serverless deploy
Service Information
service: mgnio-ota-fmw
stage: dev
region: us-east-1
stack: mgnio-ota-fmw-dev
api keys:
None
endpoints:
None
functions:
None
显然我必须添加更多文本,因为它抱怨我的帖子主要是代码。我真的不知道如何进一步解释,所以我只会继续咆哮,直到我有足够的文字让 StackOverflow 停止对我大喊大叫。谢谢!
更新如果我运行,我能够获得输出serverless deploy -v
。这是预期的行为吗?是否仅在--verbose
设置标志时显示输出?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句