【问题标题】:I would like to save lambda as yaml file我想将 lambda 保存为 yaml 文件
【发布时间】:2021-12-28 15:43:02
【问题描述】:

我想以 yaml 格式保存“aws lambda --generate-cli-skeleton”的输出。此命令默认为 JSON。

【问题讨论】:

    标签: amazon-web-services aws-lambda yaml


    【解决方案1】:

    docsaws lambda <command> --generate-cli-skeleton yaml-input 将生成一个 yaml 骨架,而不是默认的 JSON:

    aws lambda list-functions --generate-cli-skeleton yaml-input
    

    返回:

    MasterRegion: ''  # For Lambda@Edge functions, the AWS Region of the master function.
    FunctionVersion: ALL # Set to ALL to include entries for all published versions of each function. Valid values are: ALL.
    Marker: '' # Specify the pagination token that's returned by a previous request to retrieve the next page of results.
    MaxItems: 0 # The maximum number of functions to return.
    

    需要 aws cli v2。

    【讨论】:

    • 错误 = aws: 错误: 参数 --generate-cli-skeleton: 无效的选择,有效的选择是:输入 |输出
    • 在 v2.0 中添加了 Yaml 骨架生成。检查aws --version
    猜你喜欢
    • 2011-03-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-23
    • 2021-11-27
    • 1970-01-01
    相关资源
    最近更新 更多