Scaleway

v0.1.8 published on Thursday, Jan 13, 2022 by Lee Briggs

The Scaleway provider for Pulumi can be used to provision any of the cloud resources available in Pulumi. The Scaleway provider must be configured with credentials to deploy and update resources in Scaleway.

Example

import * as scaleway from "@jaxxstorm/pulumi-scaleway";
const publicIp = new scaleway.InstanceIp("example")
const server = new scaleway.InstanceServer("example", {
    type: "DEV1-S",
    image: "ubuntu_focal",
    ipId: publicIp.id,
    tags: [
        "typescript"
    ]
})
import pulumi_scaleway as scaleway

public_ip = scaleway.InstanceIp("example")

server = scaleway.InstanceServer("example",
    image="ubuntu_focal",
    type="DEV1-S",
    ip_id=public_ip.id,
    tags=["python"]
)
import (
	"fmt"
	scaleway "github.com/jaxxstorm/pulumi-scaleway/sdk/go/scaleway"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {

		publicIp, err := scaleway.NewInstanceIp(ctx, "example", &scaleway.InstanceIpArgs{})
		if err != nil {
			return fmt.Errorf("error creating public IP: %v", err)
		}

		server, err := scaleway.NewInstanceServer(ctx, "example", &scaleway.InstanceServerArgs{
			Image: pulumi.String("ubuntu_focal"),
			IpId:  publicIp.ID(),
			Type:  pulumi.String("DEV1-S"),
			Tags: pulumi.StringArray{
				pulumi.String("go"),
			},
		})
		if err != nil {
			return fmt.Errorf("error creating instance server: %v", err)
		}

		ctx.Export("server", server.Name)

		return nil
	})
}
using Pulumi;
using Pulumi.Scaleway;

class ScalewayServer : Stack
{
    public ScalewayServer()
    {
        var publicIp = new InstanceIp("example", new InstanceIpArgs{});

        var server = new InstanceServer("example", new InstanceServerArgs{
            Image = "ubuntu_focal",
            IpId = publicIp.Id,
            Type = "DEV1-S",
        });
    }
}