【问题标题】:Pass EFS ID to OpsWorks via Cloudformation通过 Cloudformation 将 EFS ID 传递给 OpsWorks
【发布时间】:2017-08-08 09:27:09
【问题描述】:

我们正在开发 AWS 中的 cloudformation 模板。但是,我们找不到如何将 EFS ID 传递给 OpsWorks 以便将其挂载到 OpsWorks 的实例中的方法。

对于 EC2 实例,他们可以将 EFS ID 传递给作为用户数据嵌入的 bash 命令或 shell 脚本,或将其添加到自动扩展配置中。

我们还尝试在 opsworks 实例中添加“AWS::CloudFormation::Init”元数据,但它似乎只适用于“AWS::EC2::Instance”。

任何帮助将不胜感激。

【问题讨论】:

    标签: amazon-web-services amazon-cloudformation aws-opsworks amazon-efs


    【解决方案1】:

    知道了,我们只需要在堆栈本身上设置一个自定义 JSON,然后引用 EFS ID。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-09
      • 2017-04-27
      • 2017-05-12
      • 2016-11-22
      • 1970-01-01
      • 2021-02-12
      • 2015-08-13
      • 2017-05-06
      相关资源
      最近更新 更多