Instance
Distributed Relational Database Service (DRDS) is a lightweight (stateless), flexible, stable, and efficient middleware product independently developed by Alibaba Group to resolve scalability issues with single-host relational databases. With its compatibility with MySQL protocols and syntaxes, DRDS enables database/table sharding, smooth scaling, configuration upgrade/downgrade, transparent read/write splitting, and distributed transactions, providing O&M capabilities for distributed databases throughout their entire lifecycle.
For information about DRDS and how to use it, see What is DRDS.
NOTE: At present, DRDS instance only can be supported in the regions: cn-shenzhen, cn-beijing, cn-hangzhou, cn-hongkong, cn-qingdao.
NOTE: Currently, this resource only support
Domestic Site Account.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var @default = new AliCloud.Drds.Instance("default", new AliCloud.Drds.InstanceArgs
{
Description = "drds instance",
InstanceChargeType = "PostPaid",
InstanceSeries = "drds.sn1.4c8g",
Specification = "drds.sn1.4c8g.8C16G",
VswitchId = "vsw-bp1jlu3swk8rq2yoi40ey",
ZoneId = "cn-hangzhou-e",
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.drds.Instance("default",
description="drds instance",
instance_charge_type="PostPaid",
instance_series="drds.sn1.4c8g",
specification="drds.sn1.4c8g.8C16G",
vswitch_id="vsw-bp1jlu3swk8rq2yoi40ey",
zone_id="cn-hangzhou-e")import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultInstance = new alicloud.drds.Instance("default", {
description: "drds instance",
instanceChargeType: "PostPaid",
instanceSeries: "drds.sn1.4c8g",
specification: "drds.sn1.4c8g.8C16G",
vswitchId: "vsw-bp1jlu3swk8rq2yoi40ey",
zoneId: "cn-hangzhou-e",
});Create a Instance Resource
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);def Instance(resource_name, opts=None, description=None, instance_charge_type=None, instance_series=None, specification=None, vswitch_id=None, zone_id=None, __props__=None);func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Instance resource accepts the following input properties:
- Description string
Description of the DRDS instance, This description can have a string of 2 to 256 characters.
- Instance
Series string User-defined DRDS instance node spec. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; -drds.sn1.8c16gfor DRDS instance Standard edition; -drds.sn1.16c32gfor DRDS instance Enterprise Edition; -drds.sn1.32c64gfor DRDS instance Extreme Edition;- Specification string
User-defined DRDS instance specification. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; - value range :drds.sn1.4c8g.8c16g,drds.sn1.4c8g.16c32g,drds.sn1.4c8g.32c64g,drds.sn1.4c8g.64c128g-drds.sn1.8c16gfor DRDS instance Standard edition; - value range :drds.sn1.8c16g.16c32g,drds.sn1.8c16g.32c64g,drds.sn1.8c16g.64c128g-drds.sn1.16c32gfor DRDS instance Enterprise Edition; - value range :drds.sn1.16c32g.32c64g,drds.sn1.16c32g.64c128g-drds.sn1.32c64gfor DRDS instance Extreme Edition; - value range :drds.sn1.32c64g.128c256g- Instance
Charge stringType Valid values are
PrePaid,PostPaid, Default toPostPaid.- Vswitch
Id string The VSwitch ID to launch in.
- Zone
Id string The Zone to launch the DRDS instance.
- Description string
Description of the DRDS instance, This description can have a string of 2 to 256 characters.
- Instance
Series string User-defined DRDS instance node spec. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; -drds.sn1.8c16gfor DRDS instance Standard edition; -drds.sn1.16c32gfor DRDS instance Enterprise Edition; -drds.sn1.32c64gfor DRDS instance Extreme Edition;- Specification string
User-defined DRDS instance specification. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; - value range :drds.sn1.4c8g.8c16g,drds.sn1.4c8g.16c32g,drds.sn1.4c8g.32c64g,drds.sn1.4c8g.64c128g-drds.sn1.8c16gfor DRDS instance Standard edition; - value range :drds.sn1.8c16g.16c32g,drds.sn1.8c16g.32c64g,drds.sn1.8c16g.64c128g-drds.sn1.16c32gfor DRDS instance Enterprise Edition; - value range :drds.sn1.16c32g.32c64g,drds.sn1.16c32g.64c128g-drds.sn1.32c64gfor DRDS instance Extreme Edition; - value range :drds.sn1.32c64g.128c256g- Instance
Charge stringType Valid values are
PrePaid,PostPaid, Default toPostPaid.- Vswitch
Id string The VSwitch ID to launch in.
- Zone
Id string The Zone to launch the DRDS instance.
- description string
Description of the DRDS instance, This description can have a string of 2 to 256 characters.
- instance
Series string User-defined DRDS instance node spec. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; -drds.sn1.8c16gfor DRDS instance Standard edition; -drds.sn1.16c32gfor DRDS instance Enterprise Edition; -drds.sn1.32c64gfor DRDS instance Extreme Edition;- specification string
User-defined DRDS instance specification. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; - value range :drds.sn1.4c8g.8c16g,drds.sn1.4c8g.16c32g,drds.sn1.4c8g.32c64g,drds.sn1.4c8g.64c128g-drds.sn1.8c16gfor DRDS instance Standard edition; - value range :drds.sn1.8c16g.16c32g,drds.sn1.8c16g.32c64g,drds.sn1.8c16g.64c128g-drds.sn1.16c32gfor DRDS instance Enterprise Edition; - value range :drds.sn1.16c32g.32c64g,drds.sn1.16c32g.64c128g-drds.sn1.32c64gfor DRDS instance Extreme Edition; - value range :drds.sn1.32c64g.128c256g- instance
Charge stringType Valid values are
PrePaid,PostPaid, Default toPostPaid.- vswitch
Id string The VSwitch ID to launch in.
- zone
Id string The Zone to launch the DRDS instance.
- description str
Description of the DRDS instance, This description can have a string of 2 to 256 characters.
- instance_
series str User-defined DRDS instance node spec. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; -drds.sn1.8c16gfor DRDS instance Standard edition; -drds.sn1.16c32gfor DRDS instance Enterprise Edition; -drds.sn1.32c64gfor DRDS instance Extreme Edition;- specification str
User-defined DRDS instance specification. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; - value range :drds.sn1.4c8g.8c16g,drds.sn1.4c8g.16c32g,drds.sn1.4c8g.32c64g,drds.sn1.4c8g.64c128g-drds.sn1.8c16gfor DRDS instance Standard edition; - value range :drds.sn1.8c16g.16c32g,drds.sn1.8c16g.32c64g,drds.sn1.8c16g.64c128g-drds.sn1.16c32gfor DRDS instance Enterprise Edition; - value range :drds.sn1.16c32g.32c64g,drds.sn1.16c32g.64c128g-drds.sn1.32c64gfor DRDS instance Extreme Edition; - value range :drds.sn1.32c64g.128c256g- instance_
charge_ strtype Valid values are
PrePaid,PostPaid, Default toPostPaid.- vswitch_
id str The VSwitch ID to launch in.
- zone_
id str The Zone to launch the DRDS instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
Look up an Existing Instance Resource
Get an existing Instance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InstanceState, opts?: CustomResourceOptions): Instancestatic get(resource_name, id, opts=None, description=None, instance_charge_type=None, instance_series=None, specification=None, vswitch_id=None, zone_id=None, __props__=None);func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Description string
Description of the DRDS instance, This description can have a string of 2 to 256 characters.
- Instance
Charge stringType Valid values are
PrePaid,PostPaid, Default toPostPaid.- Instance
Series string User-defined DRDS instance node spec. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; -drds.sn1.8c16gfor DRDS instance Standard edition; -drds.sn1.16c32gfor DRDS instance Enterprise Edition; -drds.sn1.32c64gfor DRDS instance Extreme Edition;- Specification string
User-defined DRDS instance specification. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; - value range :drds.sn1.4c8g.8c16g,drds.sn1.4c8g.16c32g,drds.sn1.4c8g.32c64g,drds.sn1.4c8g.64c128g-drds.sn1.8c16gfor DRDS instance Standard edition; - value range :drds.sn1.8c16g.16c32g,drds.sn1.8c16g.32c64g,drds.sn1.8c16g.64c128g-drds.sn1.16c32gfor DRDS instance Enterprise Edition; - value range :drds.sn1.16c32g.32c64g,drds.sn1.16c32g.64c128g-drds.sn1.32c64gfor DRDS instance Extreme Edition; - value range :drds.sn1.32c64g.128c256g- Vswitch
Id string The VSwitch ID to launch in.
- Zone
Id string The Zone to launch the DRDS instance.
- Description string
Description of the DRDS instance, This description can have a string of 2 to 256 characters.
- Instance
Charge stringType Valid values are
PrePaid,PostPaid, Default toPostPaid.- Instance
Series string User-defined DRDS instance node spec. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; -drds.sn1.8c16gfor DRDS instance Standard edition; -drds.sn1.16c32gfor DRDS instance Enterprise Edition; -drds.sn1.32c64gfor DRDS instance Extreme Edition;- Specification string
User-defined DRDS instance specification. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; - value range :drds.sn1.4c8g.8c16g,drds.sn1.4c8g.16c32g,drds.sn1.4c8g.32c64g,drds.sn1.4c8g.64c128g-drds.sn1.8c16gfor DRDS instance Standard edition; - value range :drds.sn1.8c16g.16c32g,drds.sn1.8c16g.32c64g,drds.sn1.8c16g.64c128g-drds.sn1.16c32gfor DRDS instance Enterprise Edition; - value range :drds.sn1.16c32g.32c64g,drds.sn1.16c32g.64c128g-drds.sn1.32c64gfor DRDS instance Extreme Edition; - value range :drds.sn1.32c64g.128c256g- Vswitch
Id string The VSwitch ID to launch in.
- Zone
Id string The Zone to launch the DRDS instance.
- description string
Description of the DRDS instance, This description can have a string of 2 to 256 characters.
- instance
Charge stringType Valid values are
PrePaid,PostPaid, Default toPostPaid.- instance
Series string User-defined DRDS instance node spec. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; -drds.sn1.8c16gfor DRDS instance Standard edition; -drds.sn1.16c32gfor DRDS instance Enterprise Edition; -drds.sn1.32c64gfor DRDS instance Extreme Edition;- specification string
User-defined DRDS instance specification. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; - value range :drds.sn1.4c8g.8c16g,drds.sn1.4c8g.16c32g,drds.sn1.4c8g.32c64g,drds.sn1.4c8g.64c128g-drds.sn1.8c16gfor DRDS instance Standard edition; - value range :drds.sn1.8c16g.16c32g,drds.sn1.8c16g.32c64g,drds.sn1.8c16g.64c128g-drds.sn1.16c32gfor DRDS instance Enterprise Edition; - value range :drds.sn1.16c32g.32c64g,drds.sn1.16c32g.64c128g-drds.sn1.32c64gfor DRDS instance Extreme Edition; - value range :drds.sn1.32c64g.128c256g- vswitch
Id string The VSwitch ID to launch in.
- zone
Id string The Zone to launch the DRDS instance.
- description str
Description of the DRDS instance, This description can have a string of 2 to 256 characters.
- instance_
charge_ strtype Valid values are
PrePaid,PostPaid, Default toPostPaid.- instance_
series str User-defined DRDS instance node spec. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; -drds.sn1.8c16gfor DRDS instance Standard edition; -drds.sn1.16c32gfor DRDS instance Enterprise Edition; -drds.sn1.32c64gfor DRDS instance Extreme Edition;- specification str
User-defined DRDS instance specification. Value range: -
drds.sn1.4c8gfor DRDS instance Starter version; - value range :drds.sn1.4c8g.8c16g,drds.sn1.4c8g.16c32g,drds.sn1.4c8g.32c64g,drds.sn1.4c8g.64c128g-drds.sn1.8c16gfor DRDS instance Standard edition; - value range :drds.sn1.8c16g.16c32g,drds.sn1.8c16g.32c64g,drds.sn1.8c16g.64c128g-drds.sn1.16c32gfor DRDS instance Enterprise Edition; - value range :drds.sn1.16c32g.32c64g,drds.sn1.16c32g.64c128g-drds.sn1.32c64gfor DRDS instance Extreme Edition; - value range :drds.sn1.32c64g.128c256g- vswitch_
id str The VSwitch ID to launch in.
- zone_
id str The Zone to launch the DRDS instance.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.