The ALIYUN::MEMCACHE::Instance type is used to create an ApsaraDB for Memcache instance.


    "Type" : "ALIYUN::MEMCACHE::Instance",
    "Properties" : {
         "VpcId" : String,
         "Capacity" : Integer,
         "PrivateIpAddr" : String,
         "ZoneId" : String,
         "SecurityIPArray" : String,
         "VSwitchId" : String,
         "NetworkType" : String,
         "Password" : String,
         "InstanceName" : String


Name Type Required Description Constraint
Capacity integer Yes Storage space Value range: 1024MB to 32GB. Value options: 1024MB, 2048MB, 4096MB, 8192MB, 16384MB, 32768MB. The unit is MB.
Password string Yes Password The password is a string of 8 to 30 characters and must contain digits and uppercase/lowercase letters.
VpcId string No VPC ID N/A
PrivateIpAddr string No Private IP address in VPC The private IP address must belong to the CIDR block specified by VpcId and VSwitchId.
ZoneId string No Zone ID N/A
SecurityIPArray string No Whitelist of the IP addresses allowed to access the instance The IP addresses are separated by commas and cannot be repeated. The list can contain a maximum of 1,000 IP addresses. Supported formats include %,, (IP), and (CIDR mode; classless inter-domain routing. /24 indicates the length of the prefix of an IP address. The range of the prefix length is [1, 32].) indicates that no access restriction is applied. By default, no access restriction is applied.
VSwitchId string No VSwitch ID associated with the VPC ID N/A
NetworkType string No Network type Value options: CLASSIC and VPC.
InstanceName string No Instance name It can contain up to 128 characters.

Response value


  • InstanceStatus: status of the created instance.
  • InstanceId: ID of the created instance.
  • ConnectionDomain: domain name used to connect to the instance.
  • QPS: peak QPS of the instance.
  • InstanceName: name of the instance.
  • PrivateIpAddress: IP address of the instance in VPC (Classic networks do not have private IP addresses.)


  "ROSTemplateFormatVersion" : "2015-09-01",
  "Resources" : {
    "OcsInstance": {
      "Type": "ALIYUN::MEMCACHE::Instance",
      "Properties": {
        "Password": "YU76sdfsfdUY",
        "Capacity": 1024,
        "VpcId": "vpc-25o8sqkwb",
        "VSwitchId": "vsw-25rc1y5t9",
        "ZoneId": "cn-beijing-c"
  "Outputs": {
    "ConnectionDomain": {
      "Description": "Intranet connection string",
      "Value": {
        "Fn::GetAtt": [
    "PrivateIpAddress": {
      "Description": "Internal IP address",
      "Value": {
        "Fn::GetAtt": [