tencentcloud.ClbTargetGroupInstanceAttachment
Explore with Pulumi AI
Provides a resource to create a CLB target group instance attachment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const _default = tencentcloud.getAvailabilityZones({});
const images = tencentcloud.getImages({
imageTypes: ["PUBLIC_IMAGE"],
osName: "centos",
});
const instanceTypes = tencentcloud.getInstanceTypes({
cpuCoreCount: 2,
memorySize: 4,
filters: [{
name: "instance-family",
values: ["S5"],
}],
});
const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
const subnet = new tencentcloud.Subnet("subnet", {
vpcId: vpc.vpcId,
availabilityZone: _default.then(_default => _default.zones?.[0]?.name),
cidrBlock: "10.0.1.0/24",
});
const exampleInstance = new tencentcloud.Instance("exampleInstance", {
instanceName: "tf-example",
availabilityZone: _default.then(_default => _default.zones?.[0]?.name),
imageId: images.then(images => images.images?.[0]?.imageId),
instanceType: instanceTypes.then(instanceTypes => instanceTypes.instanceTypes?.[0]?.instanceType),
systemDiskType: "CLOUD_PREMIUM",
systemDiskSize: 50,
hostname: "user",
projectId: 0,
vpcId: vpc.vpcId,
subnetId: subnet.subnetId,
internetMaxBandwidthOut: 100,
dataDisks: [{
dataDiskType: "CLOUD_PREMIUM",
dataDiskSize: 50,
encrypt: false,
}],
tags: {
tagKey: "tagValue",
},
});
const instances = tencentcloud.getInstancesOutput({
instanceId: exampleInstance.instanceId,
});
const exampleClbTargetGroup = new tencentcloud.ClbTargetGroup("exampleClbTargetGroup", {
targetGroupName: "tf-example",
vpcId: vpc.vpcId,
});
const exampleClbTargetGroupInstanceAttachment = new tencentcloud.ClbTargetGroupInstanceAttachment("exampleClbTargetGroupInstanceAttachment", {
targetGroupId: exampleClbTargetGroup.clbTargetGroupId,
bindIp: instances.apply(instances => instances.instanceLists?.[0]?.privateIp),
port: 8080,
weight: 10,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
default = tencentcloud.get_availability_zones()
images = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
os_name="centos")
instance_types = tencentcloud.get_instance_types(cpu_core_count=2,
memory_size=4,
filters=[{
"name": "instance-family",
"values": ["S5"],
}])
vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
subnet = tencentcloud.Subnet("subnet",
vpc_id=vpc.vpc_id,
availability_zone=default.zones[0].name,
cidr_block="10.0.1.0/24")
example_instance = tencentcloud.Instance("exampleInstance",
instance_name="tf-example",
availability_zone=default.zones[0].name,
image_id=images.images[0].image_id,
instance_type=instance_types.instance_types[0].instance_type,
system_disk_type="CLOUD_PREMIUM",
system_disk_size=50,
hostname="user",
project_id=0,
vpc_id=vpc.vpc_id,
subnet_id=subnet.subnet_id,
internet_max_bandwidth_out=100,
data_disks=[{
"data_disk_type": "CLOUD_PREMIUM",
"data_disk_size": 50,
"encrypt": False,
}],
tags={
"tagKey": "tagValue",
})
instances = tencentcloud.get_instances_output(instance_id=example_instance.instance_id)
example_clb_target_group = tencentcloud.ClbTargetGroup("exampleClbTargetGroup",
target_group_name="tf-example",
vpc_id=vpc.vpc_id)
example_clb_target_group_instance_attachment = tencentcloud.ClbTargetGroupInstanceAttachment("exampleClbTargetGroupInstanceAttachment",
target_group_id=example_clb_target_group.clb_target_group_id,
bind_ip=instances.instance_lists[0].private_ip,
port=8080,
weight=10)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := tencentcloud.GetAvailabilityZones(ctx, &tencentcloud.GetAvailabilityZonesArgs{}, nil)
if err != nil {
return err
}
images, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
ImageTypes: []string{
"PUBLIC_IMAGE",
},
OsName: pulumi.StringRef("centos"),
}, nil)
if err != nil {
return err
}
instanceTypes, err := tencentcloud.GetInstanceTypes(ctx, &tencentcloud.GetInstanceTypesArgs{
CpuCoreCount: pulumi.Float64Ref(2),
MemorySize: pulumi.Float64Ref(4),
Filters: []tencentcloud.GetInstanceTypesFilter{
{
Name: "instance-family",
Values: []string{
"S5",
},
},
},
}, nil)
if err != nil {
return err
}
vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
CidrBlock: pulumi.String("10.0.0.0/16"),
})
if err != nil {
return err
}
subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
VpcId: vpc.VpcId,
AvailabilityZone: pulumi.String(_default.Zones[0].Name),
CidrBlock: pulumi.String("10.0.1.0/24"),
})
if err != nil {
return err
}
exampleInstance, err := tencentcloud.NewInstance(ctx, "exampleInstance", &tencentcloud.InstanceArgs{
InstanceName: pulumi.String("tf-example"),
AvailabilityZone: pulumi.String(_default.Zones[0].Name),
ImageId: pulumi.String(images.Images[0].ImageId),
InstanceType: pulumi.String(instanceTypes.InstanceTypes[0].InstanceType),
SystemDiskType: pulumi.String("CLOUD_PREMIUM"),
SystemDiskSize: pulumi.Float64(50),
Hostname: pulumi.String("user"),
ProjectId: pulumi.Float64(0),
VpcId: vpc.VpcId,
SubnetId: subnet.SubnetId,
InternetMaxBandwidthOut: pulumi.Float64(100),
DataDisks: tencentcloud.InstanceDataDiskArray{
&tencentcloud.InstanceDataDiskArgs{
DataDiskType: pulumi.String("CLOUD_PREMIUM"),
DataDiskSize: pulumi.Float64(50),
Encrypt: pulumi.Bool(false),
},
},
Tags: pulumi.StringMap{
"tagKey": pulumi.String("tagValue"),
},
})
if err != nil {
return err
}
instances := tencentcloud.GetInstancesOutput(ctx, tencentcloud.GetInstancesOutputArgs{
InstanceId: exampleInstance.InstanceId,
}, nil)
exampleClbTargetGroup, err := tencentcloud.NewClbTargetGroup(ctx, "exampleClbTargetGroup", &tencentcloud.ClbTargetGroupArgs{
TargetGroupName: pulumi.String("tf-example"),
VpcId: vpc.VpcId,
})
if err != nil {
return err
}
_, err = tencentcloud.NewClbTargetGroupInstanceAttachment(ctx, "exampleClbTargetGroupInstanceAttachment", &tencentcloud.ClbTargetGroupInstanceAttachmentArgs{
TargetGroupId: exampleClbTargetGroup.ClbTargetGroupId,
BindIp: pulumi.String(instances.ApplyT(func(instances tencentcloud.GetInstancesResult) (*string, error) {
return &instances.InstanceLists[0].PrivateIp, nil
}).(pulumi.StringPtrOutput)),
Port: pulumi.Float64(8080),
Weight: pulumi.Float64(10),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var @default = Tencentcloud.GetAvailabilityZones.Invoke();
var images = Tencentcloud.GetImages.Invoke(new()
{
ImageTypes = new[]
{
"PUBLIC_IMAGE",
},
OsName = "centos",
});
var instanceTypes = Tencentcloud.GetInstanceTypes.Invoke(new()
{
CpuCoreCount = 2,
MemorySize = 4,
Filters = new[]
{
new Tencentcloud.Inputs.GetInstanceTypesFilterInputArgs
{
Name = "instance-family",
Values = new[]
{
"S5",
},
},
},
});
var vpc = new Tencentcloud.Vpc("vpc", new()
{
CidrBlock = "10.0.0.0/16",
});
var subnet = new Tencentcloud.Subnet("subnet", new()
{
VpcId = vpc.VpcId,
AvailabilityZone = @default.Apply(@default => @default.Apply(getAvailabilityZonesResult => getAvailabilityZonesResult.Zones[0]?.Name)),
CidrBlock = "10.0.1.0/24",
});
var exampleInstance = new Tencentcloud.Instance("exampleInstance", new()
{
InstanceName = "tf-example",
AvailabilityZone = @default.Apply(@default => @default.Apply(getAvailabilityZonesResult => getAvailabilityZonesResult.Zones[0]?.Name)),
ImageId = images.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
InstanceType = instanceTypes.Apply(getInstanceTypesResult => getInstanceTypesResult.InstanceTypes[0]?.InstanceType),
SystemDiskType = "CLOUD_PREMIUM",
SystemDiskSize = 50,
Hostname = "user",
ProjectId = 0,
VpcId = vpc.VpcId,
SubnetId = subnet.SubnetId,
InternetMaxBandwidthOut = 100,
DataDisks = new[]
{
new Tencentcloud.Inputs.InstanceDataDiskArgs
{
DataDiskType = "CLOUD_PREMIUM",
DataDiskSize = 50,
Encrypt = false,
},
},
Tags =
{
{ "tagKey", "tagValue" },
},
});
var instances = Tencentcloud.GetInstances.Invoke(new()
{
InstanceId = exampleInstance.InstanceId,
});
var exampleClbTargetGroup = new Tencentcloud.ClbTargetGroup("exampleClbTargetGroup", new()
{
TargetGroupName = "tf-example",
VpcId = vpc.VpcId,
});
var exampleClbTargetGroupInstanceAttachment = new Tencentcloud.ClbTargetGroupInstanceAttachment("exampleClbTargetGroupInstanceAttachment", new()
{
TargetGroupId = exampleClbTargetGroup.ClbTargetGroupId,
BindIp = instances.Apply(getInstancesResult => getInstancesResult.InstanceLists[0]?.PrivateIp),
Port = 8080,
Weight = 10,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesArgs;
import com.pulumi.tencentcloud.inputs.GetImagesArgs;
import com.pulumi.tencentcloud.inputs.GetInstanceTypesArgs;
import com.pulumi.tencentcloud.Vpc;
import com.pulumi.tencentcloud.VpcArgs;
import com.pulumi.tencentcloud.Subnet;
import com.pulumi.tencentcloud.SubnetArgs;
import com.pulumi.tencentcloud.Instance;
import com.pulumi.tencentcloud.InstanceArgs;
import com.pulumi.tencentcloud.inputs.InstanceDataDiskArgs;
import com.pulumi.tencentcloud.inputs.GetInstancesArgs;
import com.pulumi.tencentcloud.ClbTargetGroup;
import com.pulumi.tencentcloud.ClbTargetGroupArgs;
import com.pulumi.tencentcloud.ClbTargetGroupInstanceAttachment;
import com.pulumi.tencentcloud.ClbTargetGroupInstanceAttachmentArgs;
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 default = TencentcloudFunctions.getAvailabilityZones();
final var images = TencentcloudFunctions.getImages(GetImagesArgs.builder()
.imageTypes("PUBLIC_IMAGE")
.osName("centos")
.build());
final var instanceTypes = TencentcloudFunctions.getInstanceTypes(GetInstanceTypesArgs.builder()
.cpuCoreCount(2)
.memorySize(4)
.filters(GetInstanceTypesFilterArgs.builder()
.name("instance-family")
.values("S5")
.build())
.build());
var vpc = new Vpc("vpc", VpcArgs.builder()
.cidrBlock("10.0.0.0/16")
.build());
var subnet = new Subnet("subnet", SubnetArgs.builder()
.vpcId(vpc.vpcId())
.availabilityZone(default_.zones()[0].name())
.cidrBlock("10.0.1.0/24")
.build());
var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
.instanceName("tf-example")
.availabilityZone(default_.zones()[0].name())
.imageId(images.applyValue(getImagesResult -> getImagesResult.images()[0].imageId()))
.instanceType(instanceTypes.applyValue(getInstanceTypesResult -> getInstanceTypesResult.instanceTypes()[0].instanceType()))
.systemDiskType("CLOUD_PREMIUM")
.systemDiskSize(50)
.hostname("user")
.projectId(0)
.vpcId(vpc.vpcId())
.subnetId(subnet.subnetId())
.internetMaxBandwidthOut(100)
.dataDisks(InstanceDataDiskArgs.builder()
.dataDiskType("CLOUD_PREMIUM")
.dataDiskSize(50)
.encrypt(false)
.build())
.tags(Map.of("tagKey", "tagValue"))
.build());
final var instances = TencentcloudFunctions.getInstances(GetInstancesArgs.builder()
.instanceId(exampleInstance.instanceId())
.build());
var exampleClbTargetGroup = new ClbTargetGroup("exampleClbTargetGroup", ClbTargetGroupArgs.builder()
.targetGroupName("tf-example")
.vpcId(vpc.vpcId())
.build());
var exampleClbTargetGroupInstanceAttachment = new ClbTargetGroupInstanceAttachment("exampleClbTargetGroupInstanceAttachment", ClbTargetGroupInstanceAttachmentArgs.builder()
.targetGroupId(exampleClbTargetGroup.clbTargetGroupId())
.bindIp(instances.applyValue(getInstancesResult -> getInstancesResult).applyValue(instances -> instances.applyValue(getInstancesResult -> getInstancesResult.instanceLists()[0].privateIp())))
.port(8080)
.weight(10)
.build());
}
}
resources:
vpc:
type: tencentcloud:Vpc
properties:
cidrBlock: 10.0.0.0/16
subnet:
type: tencentcloud:Subnet
properties:
vpcId: ${vpc.vpcId}
availabilityZone: ${default.zones[0].name}
cidrBlock: 10.0.1.0/24
exampleInstance:
type: tencentcloud:Instance
properties:
instanceName: tf-example
availabilityZone: ${default.zones[0].name}
imageId: ${images.images[0].imageId}
instanceType: ${instanceTypes.instanceTypes[0].instanceType}
systemDiskType: CLOUD_PREMIUM
systemDiskSize: 50
hostname: user
projectId: 0
vpcId: ${vpc.vpcId}
subnetId: ${subnet.subnetId}
internetMaxBandwidthOut: 100
dataDisks:
- dataDiskType: CLOUD_PREMIUM
dataDiskSize: 50
encrypt: false
tags:
tagKey: tagValue
exampleClbTargetGroup:
type: tencentcloud:ClbTargetGroup
properties:
targetGroupName: tf-example
vpcId: ${vpc.vpcId}
exampleClbTargetGroupInstanceAttachment:
type: tencentcloud:ClbTargetGroupInstanceAttachment
properties:
targetGroupId: ${exampleClbTargetGroup.clbTargetGroupId}
bindIp: ${instances.instanceLists[0].privateIp}
port: 8080
weight: 10
variables:
default:
fn::invoke:
function: tencentcloud:getAvailabilityZones
arguments: {}
images:
fn::invoke:
function: tencentcloud:getImages
arguments:
imageTypes:
- PUBLIC_IMAGE
osName: centos
instanceTypes:
fn::invoke:
function: tencentcloud:getInstanceTypes
arguments:
cpuCoreCount: 2
memorySize: 4
filters:
- name: instance-family
values:
- S5
instances:
fn::invoke:
function: tencentcloud:getInstances
arguments:
instanceId: ${exampleInstance.instanceId}
Create ClbTargetGroupInstanceAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClbTargetGroupInstanceAttachment(name: string, args: ClbTargetGroupInstanceAttachmentArgs, opts?: CustomResourceOptions);
@overload
def ClbTargetGroupInstanceAttachment(resource_name: str,
args: ClbTargetGroupInstanceAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClbTargetGroupInstanceAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
bind_ip: Optional[str] = None,
port: Optional[float] = None,
target_group_id: Optional[str] = None,
weight: Optional[float] = None,
clb_target_group_instance_attachment_id: Optional[str] = None)
func NewClbTargetGroupInstanceAttachment(ctx *Context, name string, args ClbTargetGroupInstanceAttachmentArgs, opts ...ResourceOption) (*ClbTargetGroupInstanceAttachment, error)
public ClbTargetGroupInstanceAttachment(string name, ClbTargetGroupInstanceAttachmentArgs args, CustomResourceOptions? opts = null)
public ClbTargetGroupInstanceAttachment(String name, ClbTargetGroupInstanceAttachmentArgs args)
public ClbTargetGroupInstanceAttachment(String name, ClbTargetGroupInstanceAttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:ClbTargetGroupInstanceAttachment
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 ClbTargetGroupInstanceAttachmentArgs
- 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 ClbTargetGroupInstanceAttachmentArgs
- 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 ClbTargetGroupInstanceAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClbTargetGroupInstanceAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClbTargetGroupInstanceAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ClbTargetGroupInstanceAttachment 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 ClbTargetGroupInstanceAttachment resource accepts the following input properties:
- Bind
Ip string - The Intranet IP of the target group instance.
- Port double
- Port of the target group instance.
- Target
Group stringId - Target group ID.
- Weight double
- The weight of the target group instance.
- Clb
Target stringGroup Instance Attachment Id - ID of the resource.
- Bind
Ip string - The Intranet IP of the target group instance.
- Port float64
- Port of the target group instance.
- Target
Group stringId - Target group ID.
- Weight float64
- The weight of the target group instance.
- Clb
Target stringGroup Instance Attachment Id - ID of the resource.
- bind
Ip String - The Intranet IP of the target group instance.
- port Double
- Port of the target group instance.
- target
Group StringId - Target group ID.
- weight Double
- The weight of the target group instance.
- clb
Target StringGroup Instance Attachment Id - ID of the resource.
- bind
Ip string - The Intranet IP of the target group instance.
- port number
- Port of the target group instance.
- target
Group stringId - Target group ID.
- weight number
- The weight of the target group instance.
- clb
Target stringGroup Instance Attachment Id - ID of the resource.
- bind_
ip str - The Intranet IP of the target group instance.
- port float
- Port of the target group instance.
- target_
group_ strid - Target group ID.
- weight float
- The weight of the target group instance.
- clb_
target_ strgroup_ instance_ attachment_ id - ID of the resource.
- bind
Ip String - The Intranet IP of the target group instance.
- port Number
- Port of the target group instance.
- target
Group StringId - Target group ID.
- weight Number
- The weight of the target group instance.
- clb
Target StringGroup Instance Attachment Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClbTargetGroupInstanceAttachment 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 ClbTargetGroupInstanceAttachment Resource
Get an existing ClbTargetGroupInstanceAttachment 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?: ClbTargetGroupInstanceAttachmentState, opts?: CustomResourceOptions): ClbTargetGroupInstanceAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bind_ip: Optional[str] = None,
clb_target_group_instance_attachment_id: Optional[str] = None,
port: Optional[float] = None,
target_group_id: Optional[str] = None,
weight: Optional[float] = None) -> ClbTargetGroupInstanceAttachment
func GetClbTargetGroupInstanceAttachment(ctx *Context, name string, id IDInput, state *ClbTargetGroupInstanceAttachmentState, opts ...ResourceOption) (*ClbTargetGroupInstanceAttachment, error)
public static ClbTargetGroupInstanceAttachment Get(string name, Input<string> id, ClbTargetGroupInstanceAttachmentState? state, CustomResourceOptions? opts = null)
public static ClbTargetGroupInstanceAttachment get(String name, Output<String> id, ClbTargetGroupInstanceAttachmentState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ClbTargetGroupInstanceAttachment 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.
- Bind
Ip string - The Intranet IP of the target group instance.
- Clb
Target stringGroup Instance Attachment Id - ID of the resource.
- Port double
- Port of the target group instance.
- Target
Group stringId - Target group ID.
- Weight double
- The weight of the target group instance.
- Bind
Ip string - The Intranet IP of the target group instance.
- Clb
Target stringGroup Instance Attachment Id - ID of the resource.
- Port float64
- Port of the target group instance.
- Target
Group stringId - Target group ID.
- Weight float64
- The weight of the target group instance.
- bind
Ip String - The Intranet IP of the target group instance.
- clb
Target StringGroup Instance Attachment Id - ID of the resource.
- port Double
- Port of the target group instance.
- target
Group StringId - Target group ID.
- weight Double
- The weight of the target group instance.
- bind
Ip string - The Intranet IP of the target group instance.
- clb
Target stringGroup Instance Attachment Id - ID of the resource.
- port number
- Port of the target group instance.
- target
Group stringId - Target group ID.
- weight number
- The weight of the target group instance.
- bind_
ip str - The Intranet IP of the target group instance.
- clb_
target_ strgroup_ instance_ attachment_ id - ID of the resource.
- port float
- Port of the target group instance.
- target_
group_ strid - Target group ID.
- weight float
- The weight of the target group instance.
- bind
Ip String - The Intranet IP of the target group instance.
- clb
Target StringGroup Instance Attachment Id - ID of the resource.
- port Number
- Port of the target group instance.
- target
Group StringId - Target group ID.
- weight Number
- The weight of the target group instance.
Import
CLB target group instance attachment can be imported using the id, e.g.
$ pulumi import tencentcloud:index/clbTargetGroupInstanceAttachment:ClbTargetGroupInstanceAttachment example lbtg-3k3io0i0#172.16.48.18#8080
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.