boto/boto — Issue #420: Autoscaling launchconfigs always enables detailed monitoring
Author: gerard-
Created: 2011-12-01 14:52:43+00:00
State: open

In ec2/autoscale/__init__.py the basic/detailed monitoring is controlled by 'InstanceMonitoring.member.Enabled'. I don't know if this has changed again, but for me the member is named 'InstanceMonitoring.Enabled' (see http://docs.amazonwebservices.com/AutoScaling/latest/APIReference/index.html?API_InstanceMonitoring.html). Using 'InstanceMonitoring.member.Enabled' or omitting it causes detailed monitoring to always be enabled.

This works well for me:
params['InstanceMonitoring.Enabled'] = 'true' if launch_config.instance_monitoring else 'false'