How to disable detailed monitoring of instances in the auto-scaling group in the CloudFormation template?

I use CloudFormation to rotate some of the servers in the auto-scaling group, and I want all of them to use basic monitoring. I tried to set Monitoring to false in the AWS::AutoScaling::AutoScalingGroup , as well as in AWS::AutoScaling::LaunchConfiguration , but the stack cannot start; I see a CREATE_FAILED error message: Encountered unsupported property Monitoring .

+4
amazon-web-services amazon-cloudformation
Aug 6 2018-12-12T00:
source share
1 answer

Another day in the lovingly fraudulent world of near-but-very-solid CFN template syntax.

The required property is InstanceMonitoring , not Monitoring . It should apply to your LaunchConfiguration resource. More details in the docs.

 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 

Of course, if you create an AWS :: EC2 :: Instance resource, itโ€™s just right up Monitoring . For what it's worth, I find it a little less annoying than changing SecurityGroups to SecurityGroupIds when moving Instance ads to and from VPC, but that's just me.

+8
Aug 07 2018-12-12T00:
source share



All Articles