ALIYUN::Lindorm::Instance is used to create a Lindorm instance.
Syntax
{
"Type": "ALIYUN::Lindorm::Instance",
"Properties": {
"InstanceStorage": Integer,
"ResourceGroupId": String,
"ZoneId": String,
"InstanceChargeType": String,
"VSwitchId": String,
"ColdStorage": Integer,
"Period": Integer,
"DiskCategory": String,
"InstanceName": String,
"SolrNum": Integer,
"SolrSpec": String,
"VpcId": String,
"FilestoreNum": Integer,
"SecurityIpList": List,
"LindormSpec": String,
"TsdbSpec": String,
"CoreSpec": String,
"LindormNum": Integer,
"TsdbNum": Integer,
"FilestoreSpec": String,
"PeriodUnit": String,
"StreamSpec": String,
"StreamNum": Integer,
"DeletionProtection": Boolean
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
InstanceStorage | Integer | No | No | The storage capacity of the instance. | Unit: GB. |
ResourceGroupId | String | No | No | The ID of the resource group. | None. |
ZoneId | String | No | No | The zone ID of the instance. | None. |
InstanceChargeType | String | No | No | The billing method of the instance. | Valid values:
|
VSwitchId | String | No | No | The vSwitch ID. | None. |
ColdStorage | Integer | No | No | The cold storage capacity of the instance. | If you leave ColdStorage empty, cold storage is not enabled by default. Unit: GB. Valid values: 800 to 1000000. |
Period | Integer | No | No | The subscription duration of the instance. |
Note You must specify Period when InstanceChargeType is set to PREPAY. |
DiskCategory | String | Yes | No | The storage type of the instance. | Valid values:
|
InstanceName | String | Yes | No | The instance name. | None. |
SolrNum | Integer | No | No | The number of LindormSearch nodes in the instance. | Valid values: 0 to 60. |
SolrSpec | String | No | No | The specification of LindormSearch nodes in the instance. | Valid values:
|
VpcId | String | Yes | No | The ID of the virtual private cloud (VPC) in which the instance resides. | None. |
FilestoreNum | Integer | No | No | The number of LindormDFS nodes in the instance. |
|
SecurityIpList | List | No | Yes | The IP addresses that you want to add to the whitelist. | Note If the whitelist includes the IP address 127.0.0.1, no IP addresses are allowed to access the Lindorm instance. If you add the CIDR block 192.168.0.0/24 to the whitelist, you can use all IP addresses in the CIDR block to access the Lindorm instance. Separate multiple segments in the whitelist with commas (,). |
LindormSpec | String | No | No | The specification of LindormTable nodes in the instance. | Valid values:
|
TsdbSpec | String | No | No | The specification of LindormTSDB nodes in the instance. | Valid values:
|
CoreSpec | String | No | No | The specification of nodes in the instance when DiskCategory is set to local_ssd_pro or local_hdd_pro. | Valid values when DiskCategory is set to local_ssd_pro:
Valid values when DiskCategory is set to local_hdd_pro:
|
LindormNum | Integer | No | No | The number of LindormTable nodes in the instance. | Valid values when you create a single-zone instance: 0 to 90. |
TsdbNum | Integer | No | No | The number of LindormTSDB nodes in the instance. |
|
FilestoreSpec | String | No | No | The specification of LindormDFS nodes in the instance. | Set the value to lindorm.c.xlarge. A value of lindorm.c.xlarge specifies a standard specification of 4 vCPUs and 8 GB memory. |
PeriodUnit | String | No | No | The unit of the subscription duration of the instance. | Valid values:
Note You must specify this property when InstanceChargeType is set to PREPAY. |
StreamSpec | String | No | No | The specification of Lindorm streaming engine nodes in the instance. | Valid values:
|
StreamNum | Integer | No | No | The number of Lindorm streaming engine nodes in the instance. | Valid values: 0 to 60. |
DeletionProtection | Boolean | No | Yes | Specifies whether to enable deletion protection. | Valid values:
|
Return values
Fn::GetAtt
JdbcUrlList: the Java Database Connectivity (JDBC) endpoints of databases.
InstanceId: the instance ID.
AuthInfos: the authorization information about the instance.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
VpcId:
Type: String
AssociationProperty: ALIYUN::ECS::VPC::VPCId
ZoneId:
Type: String
AssociationProperty: ALIYUN::ECS::ZoneId
VSwitchId:
Type: String
AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
AssociationPropertyMetadata:
ZoneId: ${ZoneId}
VpcId: ${VpcId}
Resources:
LindormInstance:
Type: ALIYUN::Lindorm::Instance
Properties:
InstanceStorage: 480
ZoneId:
Ref: ZoneId
InstanceChargeType: POSTPAY
VSwitchId:
Ref: VSwitchId
DiskCategory: cloud_efficiency
InstanceName: TestLindormDB
VpcId:
Ref: VpcId
LindormSpec: lindorm.c.2xlarge
LindormNum: 2
Outputs:
JdbcUrlList:
Description: The list of the jdbc connection address.
Value:
Fn::GetAtt:
- LindormInstance
- JdbcUrlList
InstanceId:
Description: The ID of the Lindorm instance that is created.
Value:
Fn::GetAtt:
- LindormInstance
- InstanceId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"VpcId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
},
"ZoneId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::ZoneId"
},
"VSwitchId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
"AssociationPropertyMetadata": {
"ZoneId": "${ZoneId}",
"VpcId": "${VpcId}"
}
}
},
"Resources": {
"LindormInstance": {
"Type": "ALIYUN::Lindorm::Instance",
"Properties": {
"InstanceStorage": 480,
"ZoneId": {
"Ref": "ZoneId"
},
"InstanceChargeType": "POSTPAY",
"VSwitchId": {
"Ref": "VSwitchId"
},
"DiskCategory": "cloud_efficiency",
"InstanceName": "TestLindormDB",
"VpcId": {
"Ref": "VpcId"
},
"LindormSpec": "lindorm.c.2xlarge",
"LindormNum": 2
}
}
},
"Outputs": {
"JdbcUrlList": {
"Description": "The list of the jdbc connection address.",
"Value": {
"Fn::GetAtt": [
"LindormInstance",
"JdbcUrlList"
]
}
},
"InstanceId": {
"Description": "The ID of the Lindorm instance that is created.",
"Value": {
"Fn::GetAtt": [
"LindormInstance",
"InstanceId"
]
}
}
}
}