Creates 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 resource group ID. |
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 of the instance. |
None. |
|
ColdStorage |
Integer |
No |
No |
The cold storage capacity of the instance. |
Cold storage is disabled by default. Unit: GB. Valid values: 800 to 1000000. |
|
Period |
Integer |
No |
No |
The subscription duration of the instance. |
Note
Required 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. |
Valid values: 0 to 60. |
|
SolrSpec |
String |
No |
No |
The specification of LindormSearch nodes. |
Valid values:
|
|
VpcId |
String |
Yes |
No |
The VPC ID of the instance. |
None. |
|
FilestoreNum |
Integer |
No |
No |
The number of LindormDFS nodes. |
|
|
SecurityIpList |
List |
No |
Yes |
The IP addresses in the whitelist. |
Note
If the whitelist includes the IP address 127.0.0.1, no IP addresses can access the instance. You can add a CIDR block such as 192.168.0.0/24 to allow all IP addresses in that block. Separate multiple entries with commas (,). |
|
LindormSpec |
String |
No |
No |
The specification of LindormTable nodes. |
Valid values:
|
|
TsdbSpec |
String |
No |
No |
The specification of LindormTSDB nodes. |
Valid values:
|
|
CoreSpec |
String |
No |
No |
The specification of nodes 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. |
Valid values for a single-zone instance: 0 to 90. |
|
TsdbNum |
Integer |
No |
No |
The number of LindormTSDB nodes. |
|
|
FilestoreSpec |
String |
No |
No |
The specification of LindormDFS nodes. |
Set to lindorm.c.xlarge, a standard specification of 4 vCPUs and 8 GB memory. |
|
PeriodUnit |
String |
No |
No |
The unit of the subscription duration. |
Valid values:
Note
Required when InstanceChargeType is set to PREPAY. |
|
StreamSpec |
String |
No |
No |
The specification of Lindorm streaming engine nodes. |
Valid values:
|
|
StreamNum |
Integer |
No |
No |
The number of Lindorm streaming engine nodes. |
Valid values: 0 to 60. |
|
DeletionProtection |
Boolean |
No |
Yes |
Specifies whether to enable deletion protection. |
Valid values:
|
Return values
Fn::GetAtt
-
JdbcUrlList: the JDBC endpoints of databases.
-
InstanceId: the instance ID.
-
AuthInfos: the authorization information.
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"
]
}
}
}
}