我正在使用 CloudFormation 启动自动扩展组中的一些服务器,并且我希望它们全部使用basic监控。我尝试设置Monitoring
to false
in the AWS::AutoScaling::AutoScalingGroup
属性以及AWS::AutoScaling::LaunchConfiguration
,但堆栈无法启动;我懂了CREATE_FAILED
出现错误消息:Encountered unsupported property Monitoring
.
这只是 CFN 模板语法几乎一致但不太一致的可爱恶作剧世界中的又一天。
您想要的房产是InstanceMonitoring
, not Monitoring
。它应该适用于您的 LaunchConfiguration 资源。更多细节是在文档中。 http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-launchconfig.html#cfn-as-launchconfig-instancemonitoring
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
当然,如果您要预置 AWS::EC2::Instance 资源,那就直接了Monitoring
。就其价值而言,我发现这比改变稍微不那么烦人SecurityGroups
to SecurityGroupIds
将实例声明移入和移出 VPC 时,但这只是我的情况。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)