edit-icon download-icon

ALIYUN::ESS::ScalingConfiguration

Last Updated: Jun 14, 2018

The ALIYUN::ESS::ScalingConfiguration type is used to create a scaling configuration.

Syntax

  1. {
  2. "Type" : "ALIYUN::ESS::ScalingConfiguration",
  3. "Properties" : {
  4. "DiskMappings" : List,
  5. "InternetMaxBandwidthIn" : Integer,
  6. "InstanceId" : String,
  7. "SecurityGroupId" : String,
  8. "SystemDiskCategory" : String,
  9. "ImageId" : String,
  10. "InternetMaxBandwidthOut" : Integer,
  11. "IoOptimized" : String,
  12. "ScalingGroupId" : String,
  13. "InternetChargeType" : String,
  14. "InstanceType" : String,
  15. "ScalingConfigurationName" : String
  16. }
  17. }

Attributes

Attribute name Type Required Update allowed Description Constraint
ScalingGroupId string Yes No ID of the scaling group to which the scaling configuration belongs N/A
DiskMappingslistNoNoDisk you want to attachUp to four disks can be attached
InternetChargeTypestringNoNoBandwidth billing method for access over the Internet Value options: PayByBandwidth and PayByTraffic. Default value: PayByTraffic
InternetMaxBandwidthInintegerNoNoMaximum Internet inbound bandwidth, in MbpsValue range: [1, 100]. Default value: 100
InternetMaxBandwidthOutintegerNoNoMaximum Internet outbound bandwidth, in MbpsValue range in PayByBandwidth mode: [0, 200]; default value: 0. Value range in PayByTraffic mode: [1, 200]. This parameter must be specified in PayByTraffic mode
InstanceId string No No ID of the ECS instance whose attributes are used to create the scaling configuration N/A
SystemDiskCategorystringNoNoSystem disk typeValue options: cloud, cloud_efficiency, cloud_ssd, and ephemeral_ssd
ImageId string NoNo ID of the image used to start the ECS instance. The image can be a public image, custom image, or a marketplace image ECS public image list
InstanceType string No No ECS instance type Instance generations and type families
SecurityGroupId string No No ID of the security group to which the created instance belongs N/A
IoOptimizedstringNoNoWhether to create an I/O optimized instanceValue options: none (non-I/O optimized) and optimized (I/O optimized). Default value: none
ScalingConfigurationName string No No Displayed name of the scaling configuration The name is a string of 2 to 40 Chinese characters or English letters. It must start with a digit, an uppercase/lowercase letter, or a Chinese character and can contain English letters, Chinese characters, digits, underscores(_), periods(.), and hyphens(-). The name must be unique in the same scaling group. If this parameter is not specified, the default value is ScalingConfigurationId

DiskMappings syntax

  1. "DiskMappings" : [
  2. {
  3. "Category" : String,
  4. "DiskName" : String,
  5. "Description" : String,
  6. "Device" : String,
  7. "SnapshotId" : String,
  8. "Size" : String
  9. }
  10. ]

DiskMappings attributes

Attribute name Type Required Update allowed Description Constraint
Size string Yes No Data disk size, in GB N/A
Category string No No Data disk type Value options: cloud, cloud_efficiency, cloud_ssd, and ephemeral_ssdDefault
DiskName string No No Data disk name The data disk name can contain a maximum of 128 characters including Chinese characters and English letters , digits, underscores(_), periods(.), and hyphens(-)
Description string No No Description Value range: [2, 256]. Default value: null
Device string No No Device name of the data disk in the ECS instance Example: /dev/xvd[a-z]
SnapshotId string No No ID of the snapshot used to create the data disk N/A

Return values

Fn::GetAtt

  • ScalingConfigurationId: ID of the scaling configuration, which is generated by the system and is globally unique.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "ScalingConfiguration": {
  5. "Type": "ALIYUN::ESS::ScalingConfiguration",
  6. "Properties": {
  7. "ImageId": "ubuntu1404_64_20G_aliaegis_20150325.vhd",
  8. "InstanceType": "ecs.t1.small",
  9. "InstanceId": "i-25xhhcqbu",
  10. "InternetChargeType": "PayByTraffic",
  11. "InternetMaxBandwidthIn": 1,
  12. "InternetMaxBandwidthOut": 20,
  13. "SystemDisk_Category": "cloud",
  14. "ScalingGroupId": "bwhtvpcBcKYac9fe3vd0kv7E",
  15. "SecurityGroupId": "sg-25zwc3se0",
  16. "DiskMappings": [
  17. {
  18. "Size": 10
  19. },
  20. {
  21. "Category": "cloud",
  22. "Size": 10
  23. }
  24. ]
  25. }
  26. }
  27. },
  28. "Outputs": {
  29. "ScalingConfiguration": {
  30. "Value" : {"get_attr": ["ScalingConfigurationId"]}
  31. }
  32. }
  33. }
Thank you! We've received your feedback.