The ALIYUN::ROCKETMQ5::Instance resource type creates an ApsaraMQ for RocketMQ 5.0 instance.
Syntax
{
"Type": "ALIYUN::ROCKETMQ5::Instance",
"Properties": {
"AutoRenewPeriod": Integer,
"ProductInfo": Map,
"ResourceGroupId": String,
"AutoRenew": Boolean,
"Period": Integer,
"InternetInfo": Map,
"SubSeriesCode": String,
"Remark": String,
"InstanceName": String,
"SeriesCode": String,
"PaymentType": String,
"VpcInfo": Map,
"PeriodUnit": String
}
}Properties
Property | Type | Required | Update allowed | Description | Constraint |
AutoRenewPeriod | Integer | No | No | The auto-renewal period. | This property takes effect only when auto-renewal is enabled for the instance. The unit is months. Value: Valid values for monthly renewal: 1, 2, 3, 6, and 12. |
ProductInfo | Map | Yes | Yes | The instance specification information. | For more information, see ProductInfo properties. |
ResourceGroupId | String | No | No | The ID of the resource group. | None. |
AutoRenew | Boolean | No | No | Specifies whether to enable auto-renewal. | This parameter is valid only for subscription instances. Valid values:
|
Period | Integer | No | No | The subscription duration. | This parameter is valid only for subscription instances. Valid values:
|
InternetInfo | Map | Yes | Yes | The Internet access configurations. | For more information, see InternetInfo properties. |
SubSeriesCode | String | Yes | No | The sub-series code of the instance. | Valid values:
Note After an instance is created, you cannot change its sub-series. |
Remark | String | No | Yes | The remarks on the instance. | None. |
InstanceName | String | No | Yes | The name of the instance to create. | If you do not specify this parameter, the instance ID is used as the instance name. |
SeriesCode | String | Yes | No | The series code of the instance. | Valid values:
Note After an instance is created, you can only upgrade its series. You cannot downgrade the series. The upgrade path is: Standard Edition > Professional Edition > Platinum Edition. For example, you can upgrade an instance from Standard Edition to Professional Edition, but you cannot downgrade an instance from Professional Edition to Standard Edition. |
PaymentType | String | No | No | The billing method of the instance. | Valid values:
|
VpcInfo | Map | Yes | No | The VPC configurations. | For more information, see VpcInfo properties. |
PeriodUnit | String | No | No | The unit of the subscription duration. | Valid values:
|
ProductInfo syntax
"ProductInfo": {
"SendReceiveRatio": Number,
"MessageRetentionTime": Integer,
"AutoScaling": Boolean,
"MsgProcessSpec": String
}ProductInfo properties
Property | Type | Required | Update allowed | Description | Constraint |
SendReceiveRatio | Number | No | Yes | The ratio of messages sent to messages received. | The value must be between 0.2 and 0.5, inclusive. |
MessageRetentionTime | Integer | No | Yes | The message retention period. | Unit: hours. The message storage for ApsaraMQ for RocketMQ 5.0 is serverless and elastic. You are charged for the actual storage that you use. You can adjust the message retention period to control storage capacity. |
AutoScaling | Boolean | No | No | Specifies whether to enable the elastic TPS feature. | Valid values:
If you enable this feature, the instance can exceed its base TPS limit within a specific range. You are charged for the TPS that exceeds the base specification. Note This feature is supported only by specific instance types. |
MsgProcessSpec | String | Yes | No | The computing specification for message sending and receiving. | None. |
InternetInfo syntax
"InternetInfo": {
"IpWhitelist": List,
"InternetSpec": String,
"FlowOutBandwidth": Integer,
"FlowOutType": String
}InternetInfo properties
Property | Type | Required | Update allowed | Description | Constraint |
IpWhitelist | List | No | Yes | The IP address whitelist for Internet access. | You can configure an IP whitelist only for an Internet endpoint. VPC endpoints do not support IP whitelists.
|
InternetSpec | String | Yes | Yes | Specifies whether to enable Internet access. | Valid values:
By default, instances support access over a VPC. If you enable Internet access, you are charged for outbound Internet traffic. |
FlowOutBandwidth | Integer | No | Yes | The Internet bandwidth. | Unit: Mbit/s. This parameter is required only when the billing method for Internet access is pay-by-bandwidth. Value range: 1 to 1,000. |
FlowOutType | String | No | No | The billing method for Internet access. | Valid values:
|
VpcInfo syntax
"VpcInfo": {
"VpcId": String,
"VSwitchId": String,
"SecurityGroupId": String,
"VSwitchIds": List
}VpcInfo properties
Property | Type | Required | Update allowed | Description | Constraint |
VpcId | String | Yes | No | The ID of the VPC to which the instance belongs. | Note After an ApsaraMQ for RocketMQ 5.0 instance is created, you cannot change its VPC. To change the VPC, release the instance and create a new one. |
VSwitchId | String | No | No | The ID of the vSwitch to which the instance belongs. | Note After an ApsaraMQ for RocketMQ 5.0 instance is created, you cannot change its vSwitch. To change the vSwitch, release the instance and create a new one. |
SecurityGroupId | String | No | No | The ID of the security group to which the instance belongs. | None. |
VSwitchIds | List | No | No | The IDs of the vSwitches to which the instance belongs. | None. |
Return values
Fn::GetAtt
InstanceName: The name of the instance.
VpcEndpoint: The VPC endpoint.
InstanceId: The ID of the instance.
InternetEndpoint: The Internet endpoint of the instance.
Examples
YAML format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
VpcId:
Type: String
AssociationProperty: ALIYUN::ECS::VPC::VPCId
VSwitchId:
Type: String
AssociationProperty: ALIYUN::ECS::VSwitch::VSwitchId
AssociationPropertyMetadata:
VpcId: ${VpcId}
Resources:
Instance:
Type: ALIYUN::ROCKETMQ5::Instance
Properties:
ProductInfo:
MsgProcessSpec: rmq.s2.2xlarge
SendReceiveRatio: 0.2
MessageRetentionTime: 72
InternetInfo:
InternetSpec: disable
FlowOutBandwidth: uninvolved
SubSeriesCode: cluster_ha
SeriesCode: standard
PaymentType: PayAsYouGo
VpcInfo:
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
Outputs:
InstanceName:
Description: Instance name.
Value:
Fn::GetAtt:
- Instance
- InstanceName
VpcEndpoint:
Description: VPC endpoint.
Value:
Fn::GetAtt:
- Instance
- VpcEndpoint
InstanceId:
Description: Instance ID created.
Value:
Fn::GetAtt:
- Instance
- InstanceId
InternetEndpoint:
Description: Internet endpoint.
Value:
Fn::GetAtt:
- Instance
- InternetEndpointJSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"VpcId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId"
},
"VSwitchId": {
"Type": "String",
"AssociationProperty": "ALIYUN::ECS::VSwitch::VSwitchId",
"AssociationPropertyMetadata": {
"VpcId": "${VpcId}"
}
}
},
"Resources": {
"Instance": {
"Type": "ALIYUN::ROCKETMQ5::Instance",
"Properties": {
"ProductInfo": {
"MsgProcessSpec": "rmq.s2.2xlarge",
"SendReceiveRatio": 0.2,
"MessageRetentionTime": 72
},
"InternetInfo": {
"InternetSpec": "disable",
"FlowOutBandwidth": "uninvolved"
},
"SubSeriesCode": "cluster_ha",
"SeriesCode": "standard",
"PaymentType": "PayAsYouGo",
"VpcInfo": {
"VpcId": {
"Ref": "VpcId"
},
"VSwitchId": {
"Ref": "VSwitchId"
}
}
}
}
},
"Outputs": {
"InstanceName": {
"Description": "Instance name.",
"Value": {
"Fn::GetAtt": [
"Instance",
"InstanceName"
]
}
},
"VpcEndpoint": {
"Description": "VPC endpoint.",
"Value": {
"Fn::GetAtt": [
"Instance",
"VpcEndpoint"
]
}
},
"InstanceId": {
"Description": "Instance ID created.",
"Value": {
"Fn::GetAtt": [
"Instance",
"InstanceId"
]
}
},
"InternetEndpoint": {
"Description": "Internet endpoint.",
"Value": {
"Fn::GetAtt": [
"Instance",
"InternetEndpoint"
]
}
}
}
}