We should support the ‘InstanceId’ for AWS::AutoScaling::LaunchConfiguration resource to be compatible with AWSCloudFormation.
In AWSCloudFormation, user can specify ‘InstanceId’ property if he wants the launch configuration to use settings from an existing instance, see:
Will be good to implement ‘InstanceId’ property to be compatible with AWSCloudFormation.
- Without ‘InstanceId’, should specify ‘ImageId’ and ‘InstanceType’ properties, using the old way to create the new launch configuration.
- Specify ‘InstanceId’ only, the new launch configuration has ‘ImageId’, ‘InstanceType’, ‘KeyName’, and ‘SecurityGroups’ attributes from the instance.
- Specify ‘InstanceId’ and other properties else, these properties will override the attributes from the instance.