首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无服务器框架输出

无服务器框架输出
EN

Stack Overflow用户
提问于 2018-11-07 21:48:11
回答 1查看 2.7K关注 0票数 2

我只想能打印出我需要的信息,我的应用程序配置。从基础开始: UserPoolId。输出不起作用。有人知道为什么吗?

代码语言:javascript
复制
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后的输出

代码语言:javascript
复制
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标志时,输出才会显示?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-07-21 01:42:45

要使无服务器框架显示任何堆栈输出,您需要使用-v或-详细标志。

代码语言:javascript
复制
sls deploy -v 

代码语言:javascript
复制
sls info -v

见docs 这里

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53198356

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档