edit-icon download-icon

ALIYUN::ESS::ScalingGroupEnable

Last Updated: Jun 13, 2018

The ALIYUN::ESS::ScalingGroupEnable type can be used to enable a scaling group.

Syntax

  1. {
  2. "Type" : "ALIYUN::ESS::ScalingGroupEnable",
  3. "Properties" : {
  4. "ScalingGroupId" : Integer,
  5. "ScalingConfigurationId" : Integer,
  6. "InstanceIds" : String
  7. }
  8. }

Attributes

Attribute name Type Required Update allowed Description Constraint
ScalingGroupId string Yes No ID of the scaling group N/A
ScalingConfigurationId string No No ID of the scaling configuration you want to activate in the scaling group N/A
InstanceIds list No No ID of the ECS instance you want to add to the enabled scaling group You can enter up to 20 IDs

Return values

Fn::GetAtt

  • LifecycleState: status of the scaling group.

  • ScalingInstances: automatically created instances of the scaling group.

  • ScalingGroupId: ID of the scaling group.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "ScalingGroupEnable": {
  5. "Type": "ALIYUN::ESS::ScalingGroupEnable",
  6. "Properties": {
  7. "ScalingGroupId": "r0HUqbJ411cc2eQw8bUwyXI",
  8. "ScalingConfigurationId": "bJlLfdexm77LdsyptmelVWdS",
  9. "InstanceIds": "",
  10. }
  11. }
  12. },
  13. "Outputs": {
  14. "ScalingGroupEnable": {
  15. "Value" : {"Fn::GetAtt": ["ScalingGroupEnable", "LifecycleState"]}
  16. }
  17. }
  18. }
Thank you! We've received your feedback.