flexibleengine.ComputeFloatingipAssociateV2
Explore with Pulumi AI
Associate a floating IP to an instance. This can be used instead of the
floating_ip
options in flexibleengine.ComputeInstanceV2
.
Example Usage
Associate with EIP
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const instance1 = new flexibleengine.ComputeInstanceV2("instance1", {
imageId: "ad091b52-742f-469e-8f3c-fd81cadf0743",
flavorId: "3",
keyPair: "my_key_pair_name",
securityGroups: ["default"],
});
const eip1 = new flexibleengine.VpcEip("eip1", {
publicip: {
type: "5_bgp",
},
bandwidth: {
name: "test",
size: 8,
shareType: "PER",
chargeMode: "traffic",
},
});
const fip1 = new flexibleengine.ComputeFloatingipAssociateV2("fip1", {
floatingIp: eip1.publicip.apply(publicip => publicip.ipAddress),
instanceId: instance1.computeInstanceV2Id,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
instance1 = flexibleengine.ComputeInstanceV2("instance1",
image_id="ad091b52-742f-469e-8f3c-fd81cadf0743",
flavor_id="3",
key_pair="my_key_pair_name",
security_groups=["default"])
eip1 = flexibleengine.VpcEip("eip1",
publicip={
"type": "5_bgp",
},
bandwidth={
"name": "test",
"size": 8,
"share_type": "PER",
"charge_mode": "traffic",
})
fip1 = flexibleengine.ComputeFloatingipAssociateV2("fip1",
floating_ip=eip1.publicip.ip_address,
instance_id=instance1.compute_instance_v2_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
instance1, err := flexibleengine.NewComputeInstanceV2(ctx, "instance1", &flexibleengine.ComputeInstanceV2Args{
ImageId: pulumi.String("ad091b52-742f-469e-8f3c-fd81cadf0743"),
FlavorId: pulumi.String("3"),
KeyPair: pulumi.String("my_key_pair_name"),
SecurityGroups: pulumi.StringArray{
pulumi.String("default"),
},
})
if err != nil {
return err
}
eip1, err := flexibleengine.NewVpcEip(ctx, "eip1", &flexibleengine.VpcEipArgs{
Publicip: &flexibleengine.VpcEipPublicipArgs{
Type: pulumi.String("5_bgp"),
},
Bandwidth: &flexibleengine.VpcEipBandwidthArgs{
Name: pulumi.String("test"),
Size: pulumi.Float64(8),
ShareType: pulumi.String("PER"),
ChargeMode: pulumi.String("traffic"),
},
})
if err != nil {
return err
}
_, err = flexibleengine.NewComputeFloatingipAssociateV2(ctx, "fip1", &flexibleengine.ComputeFloatingipAssociateV2Args{
FloatingIp: pulumi.String(eip1.Publicip.ApplyT(func(publicip flexibleengine.VpcEipPublicip) (*string, error) {
return &publicip.IpAddress, nil
}).(pulumi.StringPtrOutput)),
InstanceId: instance1.ComputeInstanceV2Id,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var instance1 = new Flexibleengine.ComputeInstanceV2("instance1", new()
{
ImageId = "ad091b52-742f-469e-8f3c-fd81cadf0743",
FlavorId = "3",
KeyPair = "my_key_pair_name",
SecurityGroups = new[]
{
"default",
},
});
var eip1 = new Flexibleengine.VpcEip("eip1", new()
{
Publicip = new Flexibleengine.Inputs.VpcEipPublicipArgs
{
Type = "5_bgp",
},
Bandwidth = new Flexibleengine.Inputs.VpcEipBandwidthArgs
{
Name = "test",
Size = 8,
ShareType = "PER",
ChargeMode = "traffic",
},
});
var fip1 = new Flexibleengine.ComputeFloatingipAssociateV2("fip1", new()
{
FloatingIp = eip1.Publicip.Apply(publicip => publicip.IpAddress),
InstanceId = instance1.ComputeInstanceV2Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ComputeInstanceV2;
import com.pulumi.flexibleengine.ComputeInstanceV2Args;
import com.pulumi.flexibleengine.VpcEip;
import com.pulumi.flexibleengine.VpcEipArgs;
import com.pulumi.flexibleengine.inputs.VpcEipPublicipArgs;
import com.pulumi.flexibleengine.inputs.VpcEipBandwidthArgs;
import com.pulumi.flexibleengine.ComputeFloatingipAssociateV2;
import com.pulumi.flexibleengine.ComputeFloatingipAssociateV2Args;
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) {
var instance1 = new ComputeInstanceV2("instance1", ComputeInstanceV2Args.builder()
.imageId("ad091b52-742f-469e-8f3c-fd81cadf0743")
.flavorId(3)
.keyPair("my_key_pair_name")
.securityGroups("default")
.build());
var eip1 = new VpcEip("eip1", VpcEipArgs.builder()
.publicip(VpcEipPublicipArgs.builder()
.type("5_bgp")
.build())
.bandwidth(VpcEipBandwidthArgs.builder()
.name("test")
.size(8)
.shareType("PER")
.chargeMode("traffic")
.build())
.build());
var fip1 = new ComputeFloatingipAssociateV2("fip1", ComputeFloatingipAssociateV2Args.builder()
.floatingIp(eip1.publicip().applyValue(publicip -> publicip.ipAddress()))
.instanceId(instance1.computeInstanceV2Id())
.build());
}
}
resources:
instance1:
type: flexibleengine:ComputeInstanceV2
properties:
imageId: ad091b52-742f-469e-8f3c-fd81cadf0743
flavorId: 3
keyPair: my_key_pair_name
securityGroups:
- default
eip1:
type: flexibleengine:VpcEip
properties:
publicip:
type: 5_bgp
bandwidth:
name: test
size: 8
shareType: PER
chargeMode: traffic
fip1:
type: flexibleengine:ComputeFloatingipAssociateV2
properties:
floatingIp: ${eip1.publicip.ipAddress}
instanceId: ${instance1.computeInstanceV2Id}
Explicitly set the network to attach to
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const instance1 = new flexibleengine.ComputeInstanceV2("instance1", {
imageId: "ad091b52-742f-469e-8f3c-fd81cadf0743",
flavorId: "3",
keyPair: "my_key_pair_name",
securityGroups: ["default"],
networks: [
{
name: "my_network",
},
{
name: "default",
},
],
});
const fip1 = new flexibleengine.ComputeFloatingipAssociateV2("fip1", {
floatingIp: flexibleengine_vpc_eip.eip_1.publicip[0].ip_address,
instanceId: instance1.computeInstanceV2Id,
fixedIp: instance1.networks.apply(networks => networks?.[1]?.fixedIpV4),
});
import pulumi
import pulumi_flexibleengine as flexibleengine
instance1 = flexibleengine.ComputeInstanceV2("instance1",
image_id="ad091b52-742f-469e-8f3c-fd81cadf0743",
flavor_id="3",
key_pair="my_key_pair_name",
security_groups=["default"],
networks=[
{
"name": "my_network",
},
{
"name": "default",
},
])
fip1 = flexibleengine.ComputeFloatingipAssociateV2("fip1",
floating_ip=flexibleengine_vpc_eip["eip_1"]["publicip"][0]["ip_address"],
instance_id=instance1.compute_instance_v2_id,
fixed_ip=instance1.networks[1].fixed_ip_v4)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
instance1, err := flexibleengine.NewComputeInstanceV2(ctx, "instance1", &flexibleengine.ComputeInstanceV2Args{
ImageId: pulumi.String("ad091b52-742f-469e-8f3c-fd81cadf0743"),
FlavorId: pulumi.String("3"),
KeyPair: pulumi.String("my_key_pair_name"),
SecurityGroups: pulumi.StringArray{
pulumi.String("default"),
},
Networks: flexibleengine.ComputeInstanceV2NetworkArray{
&flexibleengine.ComputeInstanceV2NetworkArgs{
Name: pulumi.String("my_network"),
},
&flexibleengine.ComputeInstanceV2NetworkArgs{
Name: pulumi.String("default"),
},
},
})
if err != nil {
return err
}
_, err = flexibleengine.NewComputeFloatingipAssociateV2(ctx, "fip1", &flexibleengine.ComputeFloatingipAssociateV2Args{
FloatingIp: pulumi.Any(flexibleengine_vpc_eip.Eip_1.Publicip[0].Ip_address),
InstanceId: instance1.ComputeInstanceV2Id,
FixedIp: pulumi.String(instance1.Networks.ApplyT(func(networks []flexibleengine.ComputeInstanceV2Network) (*string, error) {
return &networks[1].FixedIpV4, nil
}).(pulumi.StringPtrOutput)),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var instance1 = new Flexibleengine.ComputeInstanceV2("instance1", new()
{
ImageId = "ad091b52-742f-469e-8f3c-fd81cadf0743",
FlavorId = "3",
KeyPair = "my_key_pair_name",
SecurityGroups = new[]
{
"default",
},
Networks = new[]
{
new Flexibleengine.Inputs.ComputeInstanceV2NetworkArgs
{
Name = "my_network",
},
new Flexibleengine.Inputs.ComputeInstanceV2NetworkArgs
{
Name = "default",
},
},
});
var fip1 = new Flexibleengine.ComputeFloatingipAssociateV2("fip1", new()
{
FloatingIp = flexibleengine_vpc_eip.Eip_1.Publicip[0].Ip_address,
InstanceId = instance1.ComputeInstanceV2Id,
FixedIp = instance1.Networks.Apply(networks => networks[1]?.FixedIpV4),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.ComputeInstanceV2;
import com.pulumi.flexibleengine.ComputeInstanceV2Args;
import com.pulumi.flexibleengine.inputs.ComputeInstanceV2NetworkArgs;
import com.pulumi.flexibleengine.ComputeFloatingipAssociateV2;
import com.pulumi.flexibleengine.ComputeFloatingipAssociateV2Args;
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) {
var instance1 = new ComputeInstanceV2("instance1", ComputeInstanceV2Args.builder()
.imageId("ad091b52-742f-469e-8f3c-fd81cadf0743")
.flavorId(3)
.keyPair("my_key_pair_name")
.securityGroups("default")
.networks(
ComputeInstanceV2NetworkArgs.builder()
.name("my_network")
.build(),
ComputeInstanceV2NetworkArgs.builder()
.name("default")
.build())
.build());
var fip1 = new ComputeFloatingipAssociateV2("fip1", ComputeFloatingipAssociateV2Args.builder()
.floatingIp(flexibleengine_vpc_eip.eip_1().publicip()[0].ip_address())
.instanceId(instance1.computeInstanceV2Id())
.fixedIp(instance1.networks().applyValue(networks -> networks[1].fixedIpV4()))
.build());
}
}
resources:
instance1:
type: flexibleengine:ComputeInstanceV2
properties:
imageId: ad091b52-742f-469e-8f3c-fd81cadf0743
flavorId: 3
keyPair: my_key_pair_name
securityGroups:
- default
networks:
- name: my_network
- name: default
fip1:
type: flexibleengine:ComputeFloatingipAssociateV2
properties:
floatingIp: ${flexibleengine_vpc_eip.eip_1.publicip[0].ip_address}
instanceId: ${instance1.computeInstanceV2Id}
fixedIp: ${instance1.networks[1].fixedIpV4}
Create ComputeFloatingipAssociateV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ComputeFloatingipAssociateV2(name: string, args: ComputeFloatingipAssociateV2Args, opts?: CustomResourceOptions);
@overload
def ComputeFloatingipAssociateV2(resource_name: str,
args: ComputeFloatingipAssociateV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def ComputeFloatingipAssociateV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
floating_ip: Optional[str] = None,
instance_id: Optional[str] = None,
compute_floatingip_associate_v2_id: Optional[str] = None,
fixed_ip: Optional[str] = None,
region: Optional[str] = None)
func NewComputeFloatingipAssociateV2(ctx *Context, name string, args ComputeFloatingipAssociateV2Args, opts ...ResourceOption) (*ComputeFloatingipAssociateV2, error)
public ComputeFloatingipAssociateV2(string name, ComputeFloatingipAssociateV2Args args, CustomResourceOptions? opts = null)
public ComputeFloatingipAssociateV2(String name, ComputeFloatingipAssociateV2Args args)
public ComputeFloatingipAssociateV2(String name, ComputeFloatingipAssociateV2Args args, CustomResourceOptions options)
type: flexibleengine:ComputeFloatingipAssociateV2
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 ComputeFloatingipAssociateV2Args
- 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 ComputeFloatingipAssociateV2Args
- 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 ComputeFloatingipAssociateV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComputeFloatingipAssociateV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComputeFloatingipAssociateV2Args
- 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 computeFloatingipAssociateV2Resource = new Flexibleengine.ComputeFloatingipAssociateV2("computeFloatingipAssociateV2Resource", new()
{
FloatingIp = "string",
InstanceId = "string",
ComputeFloatingipAssociateV2Id = "string",
FixedIp = "string",
Region = "string",
});
example, err := flexibleengine.NewComputeFloatingipAssociateV2(ctx, "computeFloatingipAssociateV2Resource", &flexibleengine.ComputeFloatingipAssociateV2Args{
FloatingIp: pulumi.String("string"),
InstanceId: pulumi.String("string"),
ComputeFloatingipAssociateV2Id: pulumi.String("string"),
FixedIp: pulumi.String("string"),
Region: pulumi.String("string"),
})
var computeFloatingipAssociateV2Resource = new ComputeFloatingipAssociateV2("computeFloatingipAssociateV2Resource", ComputeFloatingipAssociateV2Args.builder()
.floatingIp("string")
.instanceId("string")
.computeFloatingipAssociateV2Id("string")
.fixedIp("string")
.region("string")
.build());
compute_floatingip_associate_v2_resource = flexibleengine.ComputeFloatingipAssociateV2("computeFloatingipAssociateV2Resource",
floating_ip="string",
instance_id="string",
compute_floatingip_associate_v2_id="string",
fixed_ip="string",
region="string")
const computeFloatingipAssociateV2Resource = new flexibleengine.ComputeFloatingipAssociateV2("computeFloatingipAssociateV2Resource", {
floatingIp: "string",
instanceId: "string",
computeFloatingipAssociateV2Id: "string",
fixedIp: "string",
region: "string",
});
type: flexibleengine:ComputeFloatingipAssociateV2
properties:
computeFloatingipAssociateV2Id: string
fixedIp: string
floatingIp: string
instanceId: string
region: string
ComputeFloatingipAssociateV2 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 ComputeFloatingipAssociateV2 resource accepts the following input properties:
- Floating
Ip string - The floating IP to associate.
- Instance
Id string - The instance to associte the floating IP with.
- Compute
Floatingip stringAssociate V2Id - Fixed
Ip string - The specific IP address to direct traffic to.
- Region string
- The region in which to obtain the V2 Compute client.
Keypairs are associated with accounts, but a Compute client is needed to
create one. If omitted, the
region
argument of the provider is used. Changing this creates a new floatingip_associate.
- Floating
Ip string - The floating IP to associate.
- Instance
Id string - The instance to associte the floating IP with.
- Compute
Floatingip stringAssociate V2Id - Fixed
Ip string - The specific IP address to direct traffic to.
- Region string
- The region in which to obtain the V2 Compute client.
Keypairs are associated with accounts, but a Compute client is needed to
create one. If omitted, the
region
argument of the provider is used. Changing this creates a new floatingip_associate.
- floating
Ip String - The floating IP to associate.
- instance
Id String - The instance to associte the floating IP with.
- compute
Floatingip StringAssociate V2Id - fixed
Ip String - The specific IP address to direct traffic to.
- region String
- The region in which to obtain the V2 Compute client.
Keypairs are associated with accounts, but a Compute client is needed to
create one. If omitted, the
region
argument of the provider is used. Changing this creates a new floatingip_associate.
- floating
Ip string - The floating IP to associate.
- instance
Id string - The instance to associte the floating IP with.
- compute
Floatingip stringAssociate V2Id - fixed
Ip string - The specific IP address to direct traffic to.
- region string
- The region in which to obtain the V2 Compute client.
Keypairs are associated with accounts, but a Compute client is needed to
create one. If omitted, the
region
argument of the provider is used. Changing this creates a new floatingip_associate.
- floating_
ip str - The floating IP to associate.
- instance_
id str - The instance to associte the floating IP with.
- compute_
floatingip_ strassociate_ v2_ id - fixed_
ip str - The specific IP address to direct traffic to.
- region str
- The region in which to obtain the V2 Compute client.
Keypairs are associated with accounts, but a Compute client is needed to
create one. If omitted, the
region
argument of the provider is used. Changing this creates a new floatingip_associate.
- floating
Ip String - The floating IP to associate.
- instance
Id String - The instance to associte the floating IP with.
- compute
Floatingip StringAssociate V2Id - fixed
Ip String - The specific IP address to direct traffic to.
- region String
- The region in which to obtain the V2 Compute client.
Keypairs are associated with accounts, but a Compute client is needed to
create one. If omitted, the
region
argument of the provider is used. Changing this creates a new floatingip_associate.
Outputs
All input properties are implicitly available as output properties. Additionally, the ComputeFloatingipAssociateV2 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 ComputeFloatingipAssociateV2 Resource
Get an existing ComputeFloatingipAssociateV2 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?: ComputeFloatingipAssociateV2State, opts?: CustomResourceOptions): ComputeFloatingipAssociateV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compute_floatingip_associate_v2_id: Optional[str] = None,
fixed_ip: Optional[str] = None,
floating_ip: Optional[str] = None,
instance_id: Optional[str] = None,
region: Optional[str] = None) -> ComputeFloatingipAssociateV2
func GetComputeFloatingipAssociateV2(ctx *Context, name string, id IDInput, state *ComputeFloatingipAssociateV2State, opts ...ResourceOption) (*ComputeFloatingipAssociateV2, error)
public static ComputeFloatingipAssociateV2 Get(string name, Input<string> id, ComputeFloatingipAssociateV2State? state, CustomResourceOptions? opts = null)
public static ComputeFloatingipAssociateV2 get(String name, Output<String> id, ComputeFloatingipAssociateV2State state, CustomResourceOptions options)
resources: _: type: flexibleengine:ComputeFloatingipAssociateV2 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.
- Compute
Floatingip stringAssociate V2Id - Fixed
Ip string - The specific IP address to direct traffic to.
- Floating
Ip string - The floating IP to associate.
- Instance
Id string - The instance to associte the floating IP with.
- Region string
- The region in which to obtain the V2 Compute client.
Keypairs are associated with accounts, but a Compute client is needed to
create one. If omitted, the
region
argument of the provider is used. Changing this creates a new floatingip_associate.
- Compute
Floatingip stringAssociate V2Id - Fixed
Ip string - The specific IP address to direct traffic to.
- Floating
Ip string - The floating IP to associate.
- Instance
Id string - The instance to associte the floating IP with.
- Region string
- The region in which to obtain the V2 Compute client.
Keypairs are associated with accounts, but a Compute client is needed to
create one. If omitted, the
region
argument of the provider is used. Changing this creates a new floatingip_associate.
- compute
Floatingip StringAssociate V2Id - fixed
Ip String - The specific IP address to direct traffic to.
- floating
Ip String - The floating IP to associate.
- instance
Id String - The instance to associte the floating IP with.
- region String
- The region in which to obtain the V2 Compute client.
Keypairs are associated with accounts, but a Compute client is needed to
create one. If omitted, the
region
argument of the provider is used. Changing this creates a new floatingip_associate.
- compute
Floatingip stringAssociate V2Id - fixed
Ip string - The specific IP address to direct traffic to.
- floating
Ip string - The floating IP to associate.
- instance
Id string - The instance to associte the floating IP with.
- region string
- The region in which to obtain the V2 Compute client.
Keypairs are associated with accounts, but a Compute client is needed to
create one. If omitted, the
region
argument of the provider is used. Changing this creates a new floatingip_associate.
- compute_
floatingip_ strassociate_ v2_ id - fixed_
ip str - The specific IP address to direct traffic to.
- floating_
ip str - The floating IP to associate.
- instance_
id str - The instance to associte the floating IP with.
- region str
- The region in which to obtain the V2 Compute client.
Keypairs are associated with accounts, but a Compute client is needed to
create one. If omitted, the
region
argument of the provider is used. Changing this creates a new floatingip_associate.
- compute
Floatingip StringAssociate V2Id - fixed
Ip String - The specific IP address to direct traffic to.
- floating
Ip String - The floating IP to associate.
- instance
Id String - The instance to associte the floating IP with.
- region String
- The region in which to obtain the V2 Compute client.
Keypairs are associated with accounts, but a Compute client is needed to
create one. If omitted, the
region
argument of the provider is used. Changing this creates a new floatingip_associate.
Import
This resource can be imported by specifying floating_ip
, instance_id
and fixed_ip
, separated
by a forward slash:
$ pulumi import flexibleengine:index/computeFloatingipAssociateV2:ComputeFloatingipAssociateV2 fip_1 <floating_ip>/<instance_id>/<fixed_ip>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.