1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. eflo
  5. NodeGroupAttachment
Alibaba Cloud v3.85.0 published on Tuesday, Sep 9, 2025 by Pulumi

alicloud.eflo.NodeGroupAttachment

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.85.0 published on Tuesday, Sep 9, 2025 by Pulumi

    Provides a Eflo Node Group Attachment resource.

    Node Association Node Group Resources.

    For information about Eflo Node Group Attachment and how to use it, see What is Node Group Attachment.

    NOTE: Available since v1.255.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new alicloud.eflo.NodeGroupAttachment("default", {
        vswitchId: "vsw-uf63gbmvwgreao66opmie",
        hostname: "attachment-example-e01-cn-smw4d1bzd0a",
        loginPassword: "G7f$2kL9@vQx3Zp5*",
        clusterId: "i118976621753269898628",
        nodeGroupId: "i127582271753269898630",
        nodeId: "e01-cn-smw4d1bzd0a",
        vpcId: "vpc-uf6t73bb01dfprb2qvpqa",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.eflo.NodeGroupAttachment("default",
        vswitch_id="vsw-uf63gbmvwgreao66opmie",
        hostname="attachment-example-e01-cn-smw4d1bzd0a",
        login_password="G7f$2kL9@vQx3Zp5*",
        cluster_id="i118976621753269898628",
        node_group_id="i127582271753269898630",
        node_id="e01-cn-smw4d1bzd0a",
        vpc_id="vpc-uf6t73bb01dfprb2qvpqa")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eflo"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := eflo.NewNodeGroupAttachment(ctx, "default", &eflo.NodeGroupAttachmentArgs{
    			VswitchId:     pulumi.String("vsw-uf63gbmvwgreao66opmie"),
    			Hostname:      pulumi.String("attachment-example-e01-cn-smw4d1bzd0a"),
    			LoginPassword: pulumi.String("G7f$2kL9@vQx3Zp5*"),
    			ClusterId:     pulumi.String("i118976621753269898628"),
    			NodeGroupId:   pulumi.String("i127582271753269898630"),
    			NodeId:        pulumi.String("e01-cn-smw4d1bzd0a"),
    			VpcId:         pulumi.String("vpc-uf6t73bb01dfprb2qvpqa"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new AliCloud.Eflo.NodeGroupAttachment("default", new()
        {
            VswitchId = "vsw-uf63gbmvwgreao66opmie",
            Hostname = "attachment-example-e01-cn-smw4d1bzd0a",
            LoginPassword = "G7f$2kL9@vQx3Zp5*",
            ClusterId = "i118976621753269898628",
            NodeGroupId = "i127582271753269898630",
            NodeId = "e01-cn-smw4d1bzd0a",
            VpcId = "vpc-uf6t73bb01dfprb2qvpqa",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.eflo.NodeGroupAttachment;
    import com.pulumi.alicloud.eflo.NodeGroupAttachmentArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new NodeGroupAttachment("default", NodeGroupAttachmentArgs.builder()
                .vswitchId("vsw-uf63gbmvwgreao66opmie")
                .hostname("attachment-example-e01-cn-smw4d1bzd0a")
                .loginPassword("G7f$2kL9@vQx3Zp5*")
                .clusterId("i118976621753269898628")
                .nodeGroupId("i127582271753269898630")
                .nodeId("e01-cn-smw4d1bzd0a")
                .vpcId("vpc-uf6t73bb01dfprb2qvpqa")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:eflo:NodeGroupAttachment
        properties:
          vswitchId: vsw-uf63gbmvwgreao66opmie
          hostname: attachment-example-e01-cn-smw4d1bzd0a
          loginPassword: G7f$2kL9@vQx3Zp5*
          clusterId: i118976621753269898628
          nodeGroupId: i127582271753269898630
          nodeId: e01-cn-smw4d1bzd0a
          vpcId: vpc-uf6t73bb01dfprb2qvpqa
    

    Create NodeGroupAttachment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NodeGroupAttachment(name: string, args: NodeGroupAttachmentArgs, opts?: CustomResourceOptions);
    @overload
    def NodeGroupAttachment(resource_name: str,
                            args: NodeGroupAttachmentArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def NodeGroupAttachment(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            hostname: Optional[str] = None,
                            vpc_id: Optional[str] = None,
                            vswitch_id: Optional[str] = None,
                            cluster_id: Optional[str] = None,
                            data_disks: Optional[Sequence[NodeGroupAttachmentDataDiskArgs]] = None,
                            login_password: Optional[str] = None,
                            node_group_id: Optional[str] = None,
                            node_id: Optional[str] = None,
                            user_data: Optional[str] = None)
    func NewNodeGroupAttachment(ctx *Context, name string, args NodeGroupAttachmentArgs, opts ...ResourceOption) (*NodeGroupAttachment, error)
    public NodeGroupAttachment(string name, NodeGroupAttachmentArgs args, CustomResourceOptions? opts = null)
    public NodeGroupAttachment(String name, NodeGroupAttachmentArgs args)
    public NodeGroupAttachment(String name, NodeGroupAttachmentArgs args, CustomResourceOptions options)
    
    type: alicloud:eflo:NodeGroupAttachment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NodeGroupAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NodeGroupAttachmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NodeGroupAttachmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NodeGroupAttachmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NodeGroupAttachmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var nodeGroupAttachmentResource = new AliCloud.Eflo.NodeGroupAttachment("nodeGroupAttachmentResource", new()
    {
        Hostname = "string",
        VpcId = "string",
        VswitchId = "string",
        ClusterId = "string",
        DataDisks = new[]
        {
            new AliCloud.Eflo.Inputs.NodeGroupAttachmentDataDiskArgs
            {
                Category = "string",
                DeleteWithNode = false,
                PerformanceLevel = "string",
                Size = 0,
            },
        },
        LoginPassword = "string",
        NodeGroupId = "string",
        NodeId = "string",
        UserData = "string",
    });
    
    example, err := eflo.NewNodeGroupAttachment(ctx, "nodeGroupAttachmentResource", &eflo.NodeGroupAttachmentArgs{
    	Hostname:  pulumi.String("string"),
    	VpcId:     pulumi.String("string"),
    	VswitchId: pulumi.String("string"),
    	ClusterId: pulumi.String("string"),
    	DataDisks: eflo.NodeGroupAttachmentDataDiskArray{
    		&eflo.NodeGroupAttachmentDataDiskArgs{
    			Category:         pulumi.String("string"),
    			DeleteWithNode:   pulumi.Bool(false),
    			PerformanceLevel: pulumi.String("string"),
    			Size:             pulumi.Int(0),
    		},
    	},
    	LoginPassword: pulumi.String("string"),
    	NodeGroupId:   pulumi.String("string"),
    	NodeId:        pulumi.String("string"),
    	UserData:      pulumi.String("string"),
    })
    
    var nodeGroupAttachmentResource = new NodeGroupAttachment("nodeGroupAttachmentResource", NodeGroupAttachmentArgs.builder()
        .hostname("string")
        .vpcId("string")
        .vswitchId("string")
        .clusterId("string")
        .dataDisks(NodeGroupAttachmentDataDiskArgs.builder()
            .category("string")
            .deleteWithNode(false)
            .performanceLevel("string")
            .size(0)
            .build())
        .loginPassword("string")
        .nodeGroupId("string")
        .nodeId("string")
        .userData("string")
        .build());
    
    node_group_attachment_resource = alicloud.eflo.NodeGroupAttachment("nodeGroupAttachmentResource",
        hostname="string",
        vpc_id="string",
        vswitch_id="string",
        cluster_id="string",
        data_disks=[{
            "category": "string",
            "delete_with_node": False,
            "performance_level": "string",
            "size": 0,
        }],
        login_password="string",
        node_group_id="string",
        node_id="string",
        user_data="string")
    
    const nodeGroupAttachmentResource = new alicloud.eflo.NodeGroupAttachment("nodeGroupAttachmentResource", {
        hostname: "string",
        vpcId: "string",
        vswitchId: "string",
        clusterId: "string",
        dataDisks: [{
            category: "string",
            deleteWithNode: false,
            performanceLevel: "string",
            size: 0,
        }],
        loginPassword: "string",
        nodeGroupId: "string",
        nodeId: "string",
        userData: "string",
    });
    
    type: alicloud:eflo:NodeGroupAttachment
    properties:
        clusterId: string
        dataDisks:
            - category: string
              deleteWithNode: false
              performanceLevel: string
              size: 0
        hostname: string
        loginPassword: string
        nodeGroupId: string
        nodeId: string
        userData: string
        vpcId: string
        vswitchId: string
    

    NodeGroupAttachment Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The NodeGroupAttachment resource accepts the following input properties:

    Hostname string
    Node hostname
    VpcId string
    Vpc id
    VswitchId string
    vswitch id
    ClusterId string
    Cluster ID
    DataDisks List<Pulumi.AliCloud.Eflo.Inputs.NodeGroupAttachmentDataDisk>
    The data disk of the cloud disk to be attached to the node. See data_disk below.
    LoginPassword string
    Node login password
    NodeGroupId string
    Node group ID
    NodeId string
    Node ID
    UserData string
    User-defined data
    Hostname string
    Node hostname
    VpcId string
    Vpc id
    VswitchId string
    vswitch id
    ClusterId string
    Cluster ID
    DataDisks []NodeGroupAttachmentDataDiskArgs
    The data disk of the cloud disk to be attached to the node. See data_disk below.
    LoginPassword string
    Node login password
    NodeGroupId string
    Node group ID
    NodeId string
    Node ID
    UserData string
    User-defined data
    hostname String
    Node hostname
    vpcId String
    Vpc id
    vswitchId String
    vswitch id
    clusterId String
    Cluster ID
    dataDisks List<NodeGroupAttachmentDataDisk>
    The data disk of the cloud disk to be attached to the node. See data_disk below.
    loginPassword String
    Node login password
    nodeGroupId String
    Node group ID
    nodeId String
    Node ID
    userData String
    User-defined data
    hostname string
    Node hostname
    vpcId string
    Vpc id
    vswitchId string
    vswitch id
    clusterId string
    Cluster ID
    dataDisks NodeGroupAttachmentDataDisk[]
    The data disk of the cloud disk to be attached to the node. See data_disk below.
    loginPassword string
    Node login password
    nodeGroupId string
    Node group ID
    nodeId string
    Node ID
    userData string
    User-defined data
    hostname str
    Node hostname
    vpc_id str
    Vpc id
    vswitch_id str
    vswitch id
    cluster_id str
    Cluster ID
    data_disks Sequence[NodeGroupAttachmentDataDiskArgs]
    The data disk of the cloud disk to be attached to the node. See data_disk below.
    login_password str
    Node login password
    node_group_id str
    Node group ID
    node_id str
    Node ID
    user_data str
    User-defined data
    hostname String
    Node hostname
    vpcId String
    Vpc id
    vswitchId String
    vswitch id
    clusterId String
    Cluster ID
    dataDisks List<Property Map>
    The data disk of the cloud disk to be attached to the node. See data_disk below.
    loginPassword String
    Node login password
    nodeGroupId String
    Node group ID
    nodeId String
    Node ID
    userData String
    User-defined data

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing NodeGroupAttachment Resource

    Get an existing NodeGroupAttachment 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?: NodeGroupAttachmentState, opts?: CustomResourceOptions): NodeGroupAttachment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            data_disks: Optional[Sequence[NodeGroupAttachmentDataDiskArgs]] = None,
            hostname: Optional[str] = None,
            login_password: Optional[str] = None,
            node_group_id: Optional[str] = None,
            node_id: Optional[str] = None,
            user_data: Optional[str] = None,
            vpc_id: Optional[str] = None,
            vswitch_id: Optional[str] = None) -> NodeGroupAttachment
    func GetNodeGroupAttachment(ctx *Context, name string, id IDInput, state *NodeGroupAttachmentState, opts ...ResourceOption) (*NodeGroupAttachment, error)
    public static NodeGroupAttachment Get(string name, Input<string> id, NodeGroupAttachmentState? state, CustomResourceOptions? opts = null)
    public static NodeGroupAttachment get(String name, Output<String> id, NodeGroupAttachmentState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:eflo:NodeGroupAttachment    get:      id: ${id}
    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.
    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
    Cluster ID
    DataDisks List<Pulumi.AliCloud.Eflo.Inputs.NodeGroupAttachmentDataDisk>
    The data disk of the cloud disk to be attached to the node. See data_disk below.
    Hostname string
    Node hostname
    LoginPassword string
    Node login password
    NodeGroupId string
    Node group ID
    NodeId string
    Node ID
    UserData string
    User-defined data
    VpcId string
    Vpc id
    VswitchId string
    vswitch id
    ClusterId string
    Cluster ID
    DataDisks []NodeGroupAttachmentDataDiskArgs
    The data disk of the cloud disk to be attached to the node. See data_disk below.
    Hostname string
    Node hostname
    LoginPassword string
    Node login password
    NodeGroupId string
    Node group ID
    NodeId string
    Node ID
    UserData string
    User-defined data
    VpcId string
    Vpc id
    VswitchId string
    vswitch id
    clusterId String
    Cluster ID
    dataDisks List<NodeGroupAttachmentDataDisk>
    The data disk of the cloud disk to be attached to the node. See data_disk below.
    hostname String
    Node hostname
    loginPassword String
    Node login password
    nodeGroupId String
    Node group ID
    nodeId String
    Node ID
    userData String
    User-defined data
    vpcId String
    Vpc id
    vswitchId String
    vswitch id
    clusterId string
    Cluster ID
    dataDisks NodeGroupAttachmentDataDisk[]
    The data disk of the cloud disk to be attached to the node. See data_disk below.
    hostname string
    Node hostname
    loginPassword string
    Node login password
    nodeGroupId string
    Node group ID
    nodeId string
    Node ID
    userData string
    User-defined data
    vpcId string
    Vpc id
    vswitchId string
    vswitch id
    cluster_id str
    Cluster ID
    data_disks Sequence[NodeGroupAttachmentDataDiskArgs]
    The data disk of the cloud disk to be attached to the node. See data_disk below.
    hostname str
    Node hostname
    login_password str
    Node login password
    node_group_id str
    Node group ID
    node_id str
    Node ID
    user_data str
    User-defined data
    vpc_id str
    Vpc id
    vswitch_id str
    vswitch id
    clusterId String
    Cluster ID
    dataDisks List<Property Map>
    The data disk of the cloud disk to be attached to the node. See data_disk below.
    hostname String
    Node hostname
    loginPassword String
    Node login password
    nodeGroupId String
    Node group ID
    nodeId String
    Node ID
    userData String
    User-defined data
    vpcId String
    Vpc id
    vswitchId String
    vswitch id

    Supporting Types

    NodeGroupAttachmentDataDisk, NodeGroupAttachmentDataDiskArgs

    Category string
    Type
    DeleteWithNode bool
    Indicate whether the data disk is released with the node. true indicates that the data disk will be released together when the node unsubscribes.
    PerformanceLevel string
    Performance level
    Size int
    Data disk size
    Category string
    Type
    DeleteWithNode bool
    Indicate whether the data disk is released with the node. true indicates that the data disk will be released together when the node unsubscribes.
    PerformanceLevel string
    Performance level
    Size int
    Data disk size
    category String
    Type
    deleteWithNode Boolean
    Indicate whether the data disk is released with the node. true indicates that the data disk will be released together when the node unsubscribes.
    performanceLevel String
    Performance level
    size Integer
    Data disk size
    category string
    Type
    deleteWithNode boolean
    Indicate whether the data disk is released with the node. true indicates that the data disk will be released together when the node unsubscribes.
    performanceLevel string
    Performance level
    size number
    Data disk size
    category str
    Type
    delete_with_node bool
    Indicate whether the data disk is released with the node. true indicates that the data disk will be released together when the node unsubscribes.
    performance_level str
    Performance level
    size int
    Data disk size
    category String
    Type
    deleteWithNode Boolean
    Indicate whether the data disk is released with the node. true indicates that the data disk will be released together when the node unsubscribes.
    performanceLevel String
    Performance level
    size Number
    Data disk size

    Import

    Eflo Node Group Attachment can be imported using the id, e.g.

    $ pulumi import alicloud:eflo/nodeGroupAttachment:NodeGroupAttachment example <cluster_id>:<node_group_id>:<node_id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.85.0 published on Tuesday, Sep 9, 2025 by Pulumi