【问题标题】:aws lambda update-function-configuration has no --profile option?aws lambda update-function-configuration 没有 --profile 选项?
【发布时间】:2019-01-17 12:10:31
【问题描述】:

我错过了什么吗?似乎您可以将 --profile 与几乎任何其他 aws cli 功能一起使用。

还有其他方法可以通过手动运行 aws configure 吗?

【问题讨论】:

  • 您可以将 --profile 与所有 aws 命令一起传递。您尝试时收到的错误是什么?
  • 我想通了 - 无论出于何种原因,我都需要将 --profile 开关作为第一个参数传递
  • 这不是真的。参数的位置无关紧要。
  • 你是对的。我在调用此函数的 bash 脚本中有一个错误

标签: amazon-web-services aws-lambda


【解决方案1】:

从 JSON 文件更新 Lambda 环境变量

aws lambda update-function-configuration --profile mfa --function-name test-api --cli-input-json file://dev.json

【讨论】:

    猜你喜欢
    • 2017-12-05
    • 1970-01-01
    • 1970-01-01
    • 2021-02-11
    • 2019-07-15
    • 2020-11-12
    • 2022-12-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多