如何在CloudFormation模板中禁用自动缩放组中实例的详细监视?

Ada*_*sen 5 amazon-web-services aws-cloudformation

我正在使用CloudFormation来启动自动扩展组中的某些服务器,我希望它们都能使用基本监控.我尝试设置MonitoringfalseAWS::AutoScaling::AutoScalingGroup性能以及在AWS::AutoScaling::LaunchConfiguration,但堆栈无法启动; 我看到CREATE_FAILED错误信息:Encountered unsupported property Monitoring.

Chr*_*her 9

这是一个充满爱意的流氓世界中的另一天,这个世界几乎没有相当一致的CFN模板语法.

你想要的财产InstanceMonitoring不是Monitoring.它应该适用于您的LaunchConfiguration资源.更多细节在文档中.

InstanceMonitoring

Indicates whether or not instance monitoring should be enabled for this
    autoscaling group. This is enabled by default. To turn it off, set
    InstanceMonitoring to "false".

Required: No. Default value is "true".
Type: Boolean
Run Code Online (Sandbox Code Playgroud)

当然,如果您正在配置AWS :: EC2 :: Instance资源,那么它就是直接的Monitoring.对于它的价值,我觉得这比略少改变恼人SecurityGroupsSecurityGroupIds进出的VPC的移动实例声明的时候,但是这只是我.