我有一个由AWS CloudFormation触发的正在运行的CoreOS实例。 我通过CFdevise人员更新了CloudFormation模板,但发现现有实例的用户数据未更新。 有没有办法更新正在运行的(旧的)CoreOS实例的用户数据?
您需要在模板中configurationcfn-hup守护进程以侦听实例元数据的更新。 本演练演示如何configurationcfn-hup守护进程: http ://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/updating.stacks.walkthrough.html
由于您没有使用Amazon Linux,因此您可能还必须安装Cloudformation帮助程序脚本,作为您的初始Cloudformation模板的一部分。 你可以在这里find这些脚本发行版的S3位置: http : //docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-helper-scripts-reference.html