InstanceClusterAttachment

Provides an EDAS instance cluster attachment resource.

NOTE: Available in 1.82.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var @default = new AliCloud.Edas.InstanceClusterAttachment("default", new AliCloud.Edas.InstanceClusterAttachmentArgs
        {
            ClusterId = @var.Cluster_id,
            InstanceIds = @var.Instance_ids,
        });
    }

}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

default = alicloud.edas.InstanceClusterAttachment("default",
    cluster_id=var["cluster_id"],
    instance_ids=var["instance_ids"])
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.edas.InstanceClusterAttachment("default", {
    clusterId: _var.cluster_id,
    instanceIds: _var.instance_ids,
});

Create a InstanceClusterAttachment Resource

def InstanceClusterAttachment(resource_name, opts=None, cluster_id=None, instance_ids=None, __props__=None);
name string
The unique name of the resource.
args InstanceClusterAttachmentArgs
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 InstanceClusterAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args InstanceClusterAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

InstanceClusterAttachment Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The InstanceClusterAttachment resource accepts the following input properties:

ClusterId string

The ID of the cluster that you want to create the application.

InstanceIds List<string>

The ID of instance. Type: list.

ClusterId string

The ID of the cluster that you want to create the application.

InstanceIds []string

The ID of instance. Type: list.

clusterId string

The ID of the cluster that you want to create the application.

instanceIds string[]

The ID of instance. Type: list.

cluster_id str

The ID of the cluster that you want to create the application.

instance_ids List[str]

The ID of instance. Type: list.

Outputs

All input properties are implicitly available as output properties. Additionally, the InstanceClusterAttachment resource produces the following output properties:

ClusterMemberIds Dictionary<string, string>

The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.

EcuMap Dictionary<string, string>

The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.

Id string
The provider-assigned unique ID for this managed resource.
StatusMap Dictionary<string, int>

The status map of the resource supplied above. The key is instance_id and the values are 1(running) 0(converting) -1(failed) and -2(offline).

ClusterMemberIds map[string]string

The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.

EcuMap map[string]string

The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.

Id string
The provider-assigned unique ID for this managed resource.
StatusMap map[string]int

The status map of the resource supplied above. The key is instance_id and the values are 1(running) 0(converting) -1(failed) and -2(offline).

clusterMemberIds {[key: string]: string}

The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.

ecuMap {[key: string]: string}

The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.

id string
The provider-assigned unique ID for this managed resource.
statusMap {[key: string]: number}

The status map of the resource supplied above. The key is instance_id and the values are 1(running) 0(converting) -1(failed) and -2(offline).

cluster_member_ids Dict[str, str]

The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.

ecu_map Dict[str, str]

The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.

id str
The provider-assigned unique ID for this managed resource.
status_map Dict[str, Integer]

The status map of the resource supplied above. The key is instance_id and the values are 1(running) 0(converting) -1(failed) and -2(offline).

Look up an Existing InstanceClusterAttachment Resource

Get an existing InstanceClusterAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

static get(resource_name, id, opts=None, cluster_id=None, cluster_member_ids=None, ecu_map=None, instance_ids=None, status_map=None, __props__=None);
func GetInstanceClusterAttachment(ctx *Context, name string, id IDInput, state *InstanceClusterAttachmentState, opts ...ResourceOption) (*InstanceClusterAttachment, error)
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:

ClusterId string

The ID of the cluster that you want to create the application.

ClusterMemberIds Dictionary<string, string>

The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.

EcuMap Dictionary<string, string>

The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.

InstanceIds List<string>

The ID of instance. Type: list.

StatusMap Dictionary<string, int>

The status map of the resource supplied above. The key is instance_id and the values are 1(running) 0(converting) -1(failed) and -2(offline).

ClusterId string

The ID of the cluster that you want to create the application.

ClusterMemberIds map[string]string

The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.

EcuMap map[string]string

The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.

InstanceIds []string

The ID of instance. Type: list.

StatusMap map[string]int

The status map of the resource supplied above. The key is instance_id and the values are 1(running) 0(converting) -1(failed) and -2(offline).

clusterId string

The ID of the cluster that you want to create the application.

clusterMemberIds {[key: string]: string}

The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.

ecuMap {[key: string]: string}

The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.

instanceIds string[]

The ID of instance. Type: list.

statusMap {[key: string]: number}

The status map of the resource supplied above. The key is instance_id and the values are 1(running) 0(converting) -1(failed) and -2(offline).

cluster_id str

The ID of the cluster that you want to create the application.

cluster_member_ids Dict[str, str]

The cluster members map of the resource supplied above. The key is instance_id and the value is cluster_member_id.

ecu_map Dict[str, str]

The ecu map of the resource supplied above. The key is instance_id and the value is ecu_id.

instance_ids List[str]

The ID of instance. Type: list.

status_map Dict[str, Integer]

The status map of the resource supplied above. The key is instance_id and the values are 1(running) 0(converting) -1(failed) and -2(offline).

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.