Implement ‘InstanceId’ for AutoScalingGroup¶
We should support the ‘InstanceId’ for AWS::AutoScaling::AutoScalingGroup resource to be compatible with AWSCloudFormation.
In AWSCloudFormation, user can specify ‘InstanceId’ property if he want to create an Auto Scaling group that uses an existing instance instead of a launch configuration, see:
Now in Heat, the AWS::AutoScaling::AutoScalingGroup resource only has ‘LaunchConfigurationName’ property, will be good to implement ‘InstanceId’ property.
Change ‘LaunchConfigurationName’ to be an optional property
Add ‘InstanceId’ property, optional and non-updatable
Add validate for AWS::AutoScaling::AutoScalingGroup resource, make sure choose one of the two properties
Modify the _get_conf_properties() function
if specify ‘InstanceId’, to get the attributes of the instance, and to make a temporary launch config resource, and then return the resource and its properties.
Note that the attributes include ImageId, InstanceType, KeyName, SecurityGroups.
if without ‘InstanceId’, using the old way to get the launch config resource and its properties.
Primary assignee: huangtianhua <email@example.com>
- Target Milestone for completion:
Support the ‘InstanceId’ property
Add UT/Tempest for the change