edit-icon download-icon

ALIYUN::REDIS::Instance

Last Updated: Mar 16, 2018

The ALIYUN::REDIS::Instance type can be used to create an ApsaraDB for Redis instance.

Syntax

  1. {
  2. "Type" : "ALIYUN::REDIS::Instance",
  3. "Properties" : {
  4. "VpcId" : String,
  5. "EvictionPolicy" : String,
  6. "ZoneId" : String,
  7. "VSwitchId" : String,
  8. "Password" : String,
  9. "InstanceName" : String,
  10. "InstanceClass": String
  11. }
  12. }

Attributes

Attribute name Type Required ? Description Constraint
InstanceClass string No Redis instance class
Capacity Specification
1G redis.master.small.default
2G redis.master.mid.default
4G redis.master.stand.default
8G redis.master.large.default
16G redis.master.2xlarge.default
32G redis.master.4xlarge.default
64G redis.master.8xlarge.default
128G redis.sharding.2xlarge.default
256G redis.sharding.4xlarge.default
VpcId string No VPC ID N/A
EvictionPolicy string No Data eviction policy Value options: noeviction, allkeys-lru, volatile-lru, allkeys-random, volatile-random, and volatile-ttl.
ZoneId string No Zone in the region where the ApsaraDB for Redis instance is located N/A
VSwitchId string No ID of the VSwitch in VPC N/A
Password string No Password The password is a string of 8 to 30 characters and must contain digits and uppercase/lowercase letters.
InstanceName string No Instance name The instance name is a string of 2 to 128 characters including letters, digits, Chinese characters, underscores(_), dots(.), and hyphens(-). It must start with an English letter or a Chinese character.

Return values

Fn::GetAtt

InstanceId: ID of the created instance.

Example

  1. {
  2. "ROSTemplateFormatVersion" : "2015-09-01",
  3. "Resources" : {
  4. "CreateInstance": {
  5. "Type": "ALIYUN::REDIS::Instance",
  6. "Properties": {
  7. "InstanceName": "createdByHeat",
  8. "Password": "1234Qwer",
  9. "ZoneId": "cn-beijing-a",
  10. "InstanceClass": "redis.master.small.default",
  11. "EvictionPolicy": "noeviction",
  12. }
  13. }
  14. },
  15. "Outputs": {
  16. "InstanceDetails": {
  17. "Value" : {"Fn::GetAtt": ["CreateInstance", "InstanceId"]}
  18. }
  19. }
  20. }
Thank you! We've received your feedback.