scaleway.Loadbalancer
Explore with Pulumi AI
Creates and manages Scaleway Load-Balancers. For more information, see the documentation.
Examples
Basic
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@lbrlabs/pulumi-scaleway";
const main = new scaleway.LoadbalancerIp("main", {zone: "fr-par-1"});
const base = new scaleway.Loadbalancer("base", {
ipId: main.id,
zone: main.zone,
type: "LB-S",
});
import pulumi
import lbrlabs_pulumi_scaleway as scaleway
main = scaleway.LoadbalancerIp("main", zone="fr-par-1")
base = scaleway.Loadbalancer("base",
ip_id=main.id,
zone=main.zone,
type="LB-S")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
return await Deployment.RunAsync(() =>
{
var main = new Scaleway.LoadbalancerIp("main", new()
{
Zone = "fr-par-1",
});
var @base = new Scaleway.Loadbalancer("base", new()
{
IpId = main.Id,
Zone = main.Zone,
Type = "LB-S",
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
main, err := scaleway.NewLoadbalancerIp(ctx, "main", &scaleway.LoadbalancerIpArgs{
Zone: pulumi.String("fr-par-1"),
})
if err != nil {
return err
}
_, err = scaleway.NewLoadbalancer(ctx, "base", &scaleway.LoadbalancerArgs{
IpId: main.ID(),
Zone: main.Zone,
Type: pulumi.String("LB-S"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.LoadbalancerIp;
import com.pulumi.scaleway.LoadbalancerIpArgs;
import com.pulumi.scaleway.Loadbalancer;
import com.pulumi.scaleway.LoadbalancerArgs;
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 main = new LoadbalancerIp("main", LoadbalancerIpArgs.builder()
.zone("fr-par-1")
.build());
var base = new Loadbalancer("base", LoadbalancerArgs.builder()
.ipId(main.id())
.zone(main.zone())
.type("LB-S")
.build());
}
}
resources:
main:
type: scaleway:LoadbalancerIp
properties:
zone: fr-par-1
base:
type: scaleway:Loadbalancer
properties:
ipId: ${main.id}
zone: ${main.zone}
type: LB-S
IP for Public Gateway
resource “scaleway_vpc_public_gateway_ip” “main” { }
Scaleway Private Network
resource scaleway_vpc_private_network main { }
VPC Public Gateway Network
resource “scaleway_vpc_public_gateway” “main” { name = “tf-test-public-gw” type = “VPC-GW-S” ip_id = scaleway_vpc_public_gateway_ip.main.id }
VPC Public Gateway Network DHCP config
resource “scaleway_vpc_public_gateway_dhcp” “main” { subnet = “10.0.0.0/24” }
VPC Gateway Network
resource “scaleway_vpc_gateway_network” “main” { gateway_id = scaleway_vpc_public_gateway.main.id private_network_id = scaleway_vpc_private_network.main.id dhcp_id = scaleway_vpc_public_gateway_dhcp.main.id cleanup_dhcp = true enable_masquerade = true }
Scaleway Instance
resource “scaleway_instance_server” “main” { name = “Scaleway Terraform Provider” type = “DEV1-S” image = “debian_bullseye” enable_ipv6 = false
private_network {
pn_id = scaleway_vpc_private_network.main.id
}
}
IP for LB IP
resource scaleway_lb_ip main { }
Scaleway Private Network
resource scaleway_vpc_private_network “main” { name = “private network with static config” }
Migration
In order to migrate to other types you can check the migration up or down via our CLI scw lb lb-types list
.
this change will not recreate your Load Balancer.
Please check our documentation for further details
IP ID
Since v1.15.0, ip_id
is a required field. This means that now a separate scaleway.LoadbalancerIp
is required.
When importing, the IP needs to be imported as well as the LB.
When upgrading to v1.15.0, you will need to create a new scaleway.LoadbalancerIp
resource and import it.
For instance, if you had the following:
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@lbrlabs/pulumi-scaleway";
const main = new scaleway.Loadbalancer("main", {
type: "LB-S",
zone: "fr-par-1",
});
import pulumi
import lbrlabs_pulumi_scaleway as scaleway
main = scaleway.Loadbalancer("main",
type="LB-S",
zone="fr-par-1")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
return await Deployment.RunAsync(() =>
{
var main = new Scaleway.Loadbalancer("main", new()
{
Type = "LB-S",
Zone = "fr-par-1",
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scaleway.NewLoadbalancer(ctx, "main", &scaleway.LoadbalancerArgs{
Type: pulumi.String("LB-S"),
Zone: pulumi.String("fr-par-1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.Loadbalancer;
import com.pulumi.scaleway.LoadbalancerArgs;
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 main = new Loadbalancer("main", LoadbalancerArgs.builder()
.type("LB-S")
.zone("fr-par-1")
.build());
}
}
resources:
main:
type: scaleway:Loadbalancer
properties:
type: LB-S
zone: fr-par-1
You will need to update it to:
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@lbrlabs/pulumi-scaleway";
const mainLoadbalancerIp = new scaleway.LoadbalancerIp("mainLoadbalancerIp", {});
const mainLoadbalancer = new scaleway.Loadbalancer("mainLoadbalancer", {
ipId: mainLoadbalancerIp.id,
zone: "fr-par-1",
type: "LB-S",
releaseIp: false,
});
import pulumi
import lbrlabs_pulumi_scaleway as scaleway
main_loadbalancer_ip = scaleway.LoadbalancerIp("mainLoadbalancerIp")
main_loadbalancer = scaleway.Loadbalancer("mainLoadbalancer",
ip_id=main_loadbalancer_ip.id,
zone="fr-par-1",
type="LB-S",
release_ip=False)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Lbrlabs.PulumiPackage.Scaleway;
return await Deployment.RunAsync(() =>
{
var mainLoadbalancerIp = new Scaleway.LoadbalancerIp("mainLoadbalancerIp");
var mainLoadbalancer = new Scaleway.Loadbalancer("mainLoadbalancer", new()
{
IpId = mainLoadbalancerIp.Id,
Zone = "fr-par-1",
Type = "LB-S",
ReleaseIp = false,
});
});
package main
import (
"github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
mainLoadbalancerIp, err := scaleway.NewLoadbalancerIp(ctx, "mainLoadbalancerIp", nil)
if err != nil {
return err
}
_, err = scaleway.NewLoadbalancer(ctx, "mainLoadbalancer", &scaleway.LoadbalancerArgs{
IpId: mainLoadbalancerIp.ID(),
Zone: pulumi.String("fr-par-1"),
Type: pulumi.String("LB-S"),
ReleaseIp: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.LoadbalancerIp;
import com.pulumi.scaleway.Loadbalancer;
import com.pulumi.scaleway.LoadbalancerArgs;
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 mainLoadbalancerIp = new LoadbalancerIp("mainLoadbalancerIp");
var mainLoadbalancer = new Loadbalancer("mainLoadbalancer", LoadbalancerArgs.builder()
.ipId(mainLoadbalancerIp.id())
.zone("fr-par-1")
.type("LB-S")
.releaseIp(false)
.build());
}
}
resources:
mainLoadbalancerIp:
type: scaleway:LoadbalancerIp
mainLoadbalancer:
type: scaleway:Loadbalancer
properties:
ipId: ${mainLoadbalancerIp.id}
zone: fr-par-1
type: LB-S
releaseIp: false
Private Network with static config
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.LoadbalancerIp;
import com.pulumi.scaleway.VpcPrivateNetwork;
import com.pulumi.scaleway.Loadbalancer;
import com.pulumi.scaleway.LoadbalancerArgs;
import com.pulumi.scaleway.inputs.LoadbalancerPrivateNetworkArgs;
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 mainLoadbalancerIp = new LoadbalancerIp("mainLoadbalancerIp");
var mainVpcPrivateNetwork = new VpcPrivateNetwork("mainVpcPrivateNetwork");
var mainLoadbalancer = new Loadbalancer("mainLoadbalancer", LoadbalancerArgs.builder()
.ipId(mainLoadbalancerIp.id())
.type("LB-S")
.releaseIp(false)
.privateNetworks(LoadbalancerPrivateNetworkArgs.builder()
.privateNetworkId(mainVpcPrivateNetwork.id())
.staticConfig("172.16.0.100")
.build())
.build());
}
}
resources:
mainLoadbalancerIp:
type: scaleway:LoadbalancerIp
mainVpcPrivateNetwork:
type: scaleway:VpcPrivateNetwork
mainLoadbalancer:
type: scaleway:Loadbalancer
properties:
ipId: ${mainLoadbalancerIp.id}
type: LB-S
releaseIp: false
privateNetworks:
- privateNetworkId: ${mainVpcPrivateNetwork.id}
staticConfig:
- 172.16.0.100
Create Loadbalancer Resource
new Loadbalancer(name: string, args: LoadbalancerArgs, opts?: CustomResourceOptions);
@overload
def Loadbalancer(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
ip_id: Optional[str] = None,
name: Optional[str] = None,
private_networks: Optional[Sequence[LoadbalancerPrivateNetworkArgs]] = None,
project_id: Optional[str] = None,
release_ip: Optional[bool] = None,
ssl_compatibility_level: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
type: Optional[str] = None,
zone: Optional[str] = None)
@overload
def Loadbalancer(resource_name: str,
args: LoadbalancerArgs,
opts: Optional[ResourceOptions] = None)
func NewLoadbalancer(ctx *Context, name string, args LoadbalancerArgs, opts ...ResourceOption) (*Loadbalancer, error)
public Loadbalancer(string name, LoadbalancerArgs args, CustomResourceOptions? opts = null)
public Loadbalancer(String name, LoadbalancerArgs args)
public Loadbalancer(String name, LoadbalancerArgs args, CustomResourceOptions options)
type: scaleway:Loadbalancer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoadbalancerArgs
- 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 LoadbalancerArgs
- 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 LoadbalancerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoadbalancerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LoadbalancerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Loadbalancer Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Loadbalancer resource accepts the following input properties:
- Ip
Id string The ID of the associated LB IP. See below.
Important: Updates to
ip_id
will not recreate the load-balancer.- Type string
The type of the load-balancer. Please check the migration section to upgrade the type
- Description string
The description of the load-balancer.
- Name string
The name of the load-balancer.
- Private
Networks List<Lbrlabs.Pulumi Package. Scaleway. Inputs. Loadbalancer Private Network> List of private network to connect with your load balancer
- Project
Id string project_id
) The ID of the project the load-balancer is associated with.- Release
Ip bool The release_ip allow release the ip address associated with the load-balancers.
The resource ip will be destroyed by it's own resource. Please set this to
false
- Ssl
Compatibility stringLevel Enforces minimal SSL version (in SSL/TLS offloading context). Please check possible values.
- List<string>
The tags associated with the load-balancers.
- Zone string
zone
) The zone of the load-balancer.
- Ip
Id string The ID of the associated LB IP. See below.
Important: Updates to
ip_id
will not recreate the load-balancer.- Type string
The type of the load-balancer. Please check the migration section to upgrade the type
- Description string
The description of the load-balancer.
- Name string
The name of the load-balancer.
- Private
Networks []LoadbalancerPrivate Network Args List of private network to connect with your load balancer
- Project
Id string project_id
) The ID of the project the load-balancer is associated with.- Release
Ip bool The release_ip allow release the ip address associated with the load-balancers.
The resource ip will be destroyed by it's own resource. Please set this to
false
- Ssl
Compatibility stringLevel Enforces minimal SSL version (in SSL/TLS offloading context). Please check possible values.
- []string
The tags associated with the load-balancers.
- Zone string
zone
) The zone of the load-balancer.
- ip
Id String The ID of the associated LB IP. See below.
Important: Updates to
ip_id
will not recreate the load-balancer.- type String
The type of the load-balancer. Please check the migration section to upgrade the type
- description String
The description of the load-balancer.
- name String
The name of the load-balancer.
- private
Networks List<LoadbalancerPrivate Network> List of private network to connect with your load balancer
- project
Id String project_id
) The ID of the project the load-balancer is associated with.- release
Ip Boolean The release_ip allow release the ip address associated with the load-balancers.
The resource ip will be destroyed by it's own resource. Please set this to
false
- ssl
Compatibility StringLevel Enforces minimal SSL version (in SSL/TLS offloading context). Please check possible values.
- List<String>
The tags associated with the load-balancers.
- zone String
zone
) The zone of the load-balancer.
- ip
Id string The ID of the associated LB IP. See below.
Important: Updates to
ip_id
will not recreate the load-balancer.- type string
The type of the load-balancer. Please check the migration section to upgrade the type
- description string
The description of the load-balancer.
- name string
The name of the load-balancer.
- private
Networks LoadbalancerPrivate Network[] List of private network to connect with your load balancer
- project
Id string project_id
) The ID of the project the load-balancer is associated with.- release
Ip boolean The release_ip allow release the ip address associated with the load-balancers.
The resource ip will be destroyed by it's own resource. Please set this to
false
- ssl
Compatibility stringLevel Enforces minimal SSL version (in SSL/TLS offloading context). Please check possible values.
- string[]
The tags associated with the load-balancers.
- zone string
zone
) The zone of the load-balancer.
- ip_
id str The ID of the associated LB IP. See below.
Important: Updates to
ip_id
will not recreate the load-balancer.- type str
The type of the load-balancer. Please check the migration section to upgrade the type
- description str
The description of the load-balancer.
- name str
The name of the load-balancer.
- private_
networks Sequence[LoadbalancerPrivate Network Args] List of private network to connect with your load balancer
- project_
id str project_id
) The ID of the project the load-balancer is associated with.- release_
ip bool The release_ip allow release the ip address associated with the load-balancers.
The resource ip will be destroyed by it's own resource. Please set this to
false
- ssl_
compatibility_ strlevel Enforces minimal SSL version (in SSL/TLS offloading context). Please check possible values.
- Sequence[str]
The tags associated with the load-balancers.
- zone str
zone
) The zone of the load-balancer.
- ip
Id String The ID of the associated LB IP. See below.
Important: Updates to
ip_id
will not recreate the load-balancer.- type String
The type of the load-balancer. Please check the migration section to upgrade the type
- description String
The description of the load-balancer.
- name String
The name of the load-balancer.
- private
Networks List<Property Map> List of private network to connect with your load balancer
- project
Id String project_id
) The ID of the project the load-balancer is associated with.- release
Ip Boolean The release_ip allow release the ip address associated with the load-balancers.
The resource ip will be destroyed by it's own resource. Please set this to
false
- ssl
Compatibility StringLevel Enforces minimal SSL version (in SSL/TLS offloading context). Please check possible values.
- List<String>
The tags associated with the load-balancers.
- zone String
zone
) The zone of the load-balancer.
Outputs
All input properties are implicitly available as output properties. Additionally, the Loadbalancer resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Address string The load-balance public IP Address
- Organization
Id string The organization ID the load-balancer is associated with.
- Region string
The region of the resource
- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Address string The load-balance public IP Address
- Organization
Id string The organization ID the load-balancer is associated with.
- Region string
The region of the resource
- id String
The provider-assigned unique ID for this managed resource.
- ip
Address String The load-balance public IP Address
- organization
Id String The organization ID the load-balancer is associated with.
- region String
The region of the resource
- id string
The provider-assigned unique ID for this managed resource.
- ip
Address string The load-balance public IP Address
- organization
Id string The organization ID the load-balancer is associated with.
- region string
The region of the resource
- id str
The provider-assigned unique ID for this managed resource.
- ip_
address str The load-balance public IP Address
- organization_
id str The organization ID the load-balancer is associated with.
- region str
The region of the resource
- id String
The provider-assigned unique ID for this managed resource.
- ip
Address String The load-balance public IP Address
- organization
Id String The organization ID the load-balancer is associated with.
- region String
The region of the resource
Look up Existing Loadbalancer Resource
Get an existing Loadbalancer 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?: LoadbalancerState, opts?: CustomResourceOptions): Loadbalancer
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
ip_address: Optional[str] = None,
ip_id: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
private_networks: Optional[Sequence[LoadbalancerPrivateNetworkArgs]] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
release_ip: Optional[bool] = None,
ssl_compatibility_level: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
type: Optional[str] = None,
zone: Optional[str] = None) -> Loadbalancer
func GetLoadbalancer(ctx *Context, name string, id IDInput, state *LoadbalancerState, opts ...ResourceOption) (*Loadbalancer, error)
public static Loadbalancer Get(string name, Input<string> id, LoadbalancerState? state, CustomResourceOptions? opts = null)
public static Loadbalancer get(String name, Output<String> id, LoadbalancerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Description string
The description of the load-balancer.
- Ip
Address string The load-balance public IP Address
- Ip
Id string The ID of the associated LB IP. See below.
Important: Updates to
ip_id
will not recreate the load-balancer.- Name string
The name of the load-balancer.
- Organization
Id string The organization ID the load-balancer is associated with.
- Private
Networks List<Lbrlabs.Pulumi Package. Scaleway. Inputs. Loadbalancer Private Network> List of private network to connect with your load balancer
- Project
Id string project_id
) The ID of the project the load-balancer is associated with.- Region string
The region of the resource
- Release
Ip bool The release_ip allow release the ip address associated with the load-balancers.
The resource ip will be destroyed by it's own resource. Please set this to
false
- Ssl
Compatibility stringLevel Enforces minimal SSL version (in SSL/TLS offloading context). Please check possible values.
- List<string>
The tags associated with the load-balancers.
- Type string
The type of the load-balancer. Please check the migration section to upgrade the type
- Zone string
zone
) The zone of the load-balancer.
- Description string
The description of the load-balancer.
- Ip
Address string The load-balance public IP Address
- Ip
Id string The ID of the associated LB IP. See below.
Important: Updates to
ip_id
will not recreate the load-balancer.- Name string
The name of the load-balancer.
- Organization
Id string The organization ID the load-balancer is associated with.
- Private
Networks []LoadbalancerPrivate Network Args List of private network to connect with your load balancer
- Project
Id string project_id
) The ID of the project the load-balancer is associated with.- Region string
The region of the resource
- Release
Ip bool The release_ip allow release the ip address associated with the load-balancers.
The resource ip will be destroyed by it's own resource. Please set this to
false
- Ssl
Compatibility stringLevel Enforces minimal SSL version (in SSL/TLS offloading context). Please check possible values.
- []string
The tags associated with the load-balancers.
- Type string
The type of the load-balancer. Please check the migration section to upgrade the type
- Zone string
zone
) The zone of the load-balancer.
- description String
The description of the load-balancer.
- ip
Address String The load-balance public IP Address
- ip
Id String The ID of the associated LB IP. See below.
Important: Updates to
ip_id
will not recreate the load-balancer.- name String
The name of the load-balancer.
- organization
Id String The organization ID the load-balancer is associated with.
- private
Networks List<LoadbalancerPrivate Network> List of private network to connect with your load balancer
- project
Id String project_id
) The ID of the project the load-balancer is associated with.- region String
The region of the resource
- release
Ip Boolean The release_ip allow release the ip address associated with the load-balancers.
The resource ip will be destroyed by it's own resource. Please set this to
false
- ssl
Compatibility StringLevel Enforces minimal SSL version (in SSL/TLS offloading context). Please check possible values.
- List<String>
The tags associated with the load-balancers.
- type String
The type of the load-balancer. Please check the migration section to upgrade the type
- zone String
zone
) The zone of the load-balancer.
- description string
The description of the load-balancer.
- ip
Address string The load-balance public IP Address
- ip
Id string The ID of the associated LB IP. See below.
Important: Updates to
ip_id
will not recreate the load-balancer.- name string
The name of the load-balancer.
- organization
Id string The organization ID the load-balancer is associated with.
- private
Networks LoadbalancerPrivate Network[] List of private network to connect with your load balancer
- project
Id string project_id
) The ID of the project the load-balancer is associated with.- region string
The region of the resource
- release
Ip boolean The release_ip allow release the ip address associated with the load-balancers.
The resource ip will be destroyed by it's own resource. Please set this to
false
- ssl
Compatibility stringLevel Enforces minimal SSL version (in SSL/TLS offloading context). Please check possible values.
- string[]
The tags associated with the load-balancers.
- type string
The type of the load-balancer. Please check the migration section to upgrade the type
- zone string
zone
) The zone of the load-balancer.
- description str
The description of the load-balancer.
- ip_
address str The load-balance public IP Address
- ip_
id str The ID of the associated LB IP. See below.
Important: Updates to
ip_id
will not recreate the load-balancer.- name str
The name of the load-balancer.
- organization_
id str The organization ID the load-balancer is associated with.
- private_
networks Sequence[LoadbalancerPrivate Network Args] List of private network to connect with your load balancer
- project_
id str project_id
) The ID of the project the load-balancer is associated with.- region str
The region of the resource
- release_
ip bool The release_ip allow release the ip address associated with the load-balancers.
The resource ip will be destroyed by it's own resource. Please set this to
false
- ssl_
compatibility_ strlevel Enforces minimal SSL version (in SSL/TLS offloading context). Please check possible values.
- Sequence[str]
The tags associated with the load-balancers.
- type str
The type of the load-balancer. Please check the migration section to upgrade the type
- zone str
zone
) The zone of the load-balancer.
- description String
The description of the load-balancer.
- ip
Address String The load-balance public IP Address
- ip
Id String The ID of the associated LB IP. See below.
Important: Updates to
ip_id
will not recreate the load-balancer.- name String
The name of the load-balancer.
- organization
Id String The organization ID the load-balancer is associated with.
- private
Networks List<Property Map> List of private network to connect with your load balancer
- project
Id String project_id
) The ID of the project the load-balancer is associated with.- region String
The region of the resource
- release
Ip Boolean The release_ip allow release the ip address associated with the load-balancers.
The resource ip will be destroyed by it's own resource. Please set this to
false
- ssl
Compatibility StringLevel Enforces minimal SSL version (in SSL/TLS offloading context). Please check possible values.
- List<String>
The tags associated with the load-balancers.
- type String
The type of the load-balancer. Please check the migration section to upgrade the type
- zone String
zone
) The zone of the load-balancer.
Supporting Types
LoadbalancerPrivateNetwork, LoadbalancerPrivateNetworkArgs
- Private
Network stringId (Required) The ID of the Private Network to associate.
- Dhcp
Config bool (Optional) Set to true if you want to let DHCP assign IP addresses. See below.
- Static
Config string (Optional) Define a local ip address of your choice for the load balancer instance. See below.
- Status string
- Zone string
zone
) The zone of the load-balancer.
- Private
Network stringId (Required) The ID of the Private Network to associate.
- Dhcp
Config bool (Optional) Set to true if you want to let DHCP assign IP addresses. See below.
- Static
Config string (Optional) Define a local ip address of your choice for the load balancer instance. See below.
- Status string
- Zone string
zone
) The zone of the load-balancer.
- private
Network StringId (Required) The ID of the Private Network to associate.
- dhcp
Config Boolean (Optional) Set to true if you want to let DHCP assign IP addresses. See below.
- static
Config String (Optional) Define a local ip address of your choice for the load balancer instance. See below.
- status String
- zone String
zone
) The zone of the load-balancer.
- private
Network stringId (Required) The ID of the Private Network to associate.
- dhcp
Config boolean (Optional) Set to true if you want to let DHCP assign IP addresses. See below.
- static
Config string (Optional) Define a local ip address of your choice for the load balancer instance. See below.
- status string
- zone string
zone
) The zone of the load-balancer.
- private_
network_ strid (Required) The ID of the Private Network to associate.
- dhcp_
config bool (Optional) Set to true if you want to let DHCP assign IP addresses. See below.
- static_
config str (Optional) Define a local ip address of your choice for the load balancer instance. See below.
- status str
- zone str
zone
) The zone of the load-balancer.
- private
Network StringId (Required) The ID of the Private Network to associate.
- dhcp
Config Boolean (Optional) Set to true if you want to let DHCP assign IP addresses. See below.
- static
Config String (Optional) Define a local ip address of your choice for the load balancer instance. See below.
- status String
- zone String
zone
) The zone of the load-balancer.
Import
Load-Balancer can be imported using the {zone}/{id}
, e.g. bash
$ pulumi import scaleway:index/loadbalancer:Loadbalancer main fr-par-1/11111111-1111-1111-1111-111111111111
Be aware that you will also need to import the scaleway_lb_ip
resource.
Package Details
- Repository
- scaleway lbrlabs/pulumi-scaleway
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
scaleway
Terraform Provider.