【问题标题】:AWS cloudFormation doesn't work with official Centos 6 AMIAWS cloudFormation 不适用于官方 Centos 6 AMI
【发布时间】:2015-05-28 21:38:16
【问题描述】:

我无法让最简单的 cloudFormation UserData 块与 Centos 6 AMI 一起使用。

"UserData" : {"Fn::Base64" : { "Fn::Join" : ["",[
    "#!/bin/bash -ex","\n",
    "sudo touch /root/aws-test.txt"]]}
}

它在 Amazon Linux 上运行良好,但在 Centos AMI 上没有任何反应。有什么建议吗?

【问题讨论】:

    标签: amazon-web-services amazon-cloudformation


    【解决方案1】:

    来自市场的 CentOS AMI 不包含 cloud-init,因此不会执行 UserData。

    请参阅有关创建包含 cloud-init 的自定义 CentOS AMI 的这个问题:How do I set up cloud-init on custom AMIs in AWS? (CentOS)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-29
      • 1970-01-01
      • 2015-04-15
      • 1970-01-01
      • 2011-07-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多