1. Packages
  2. Scaleway
Scaleway v1.11.0 published on Sunday, Oct 29, 2023 by lbrlabs

Scaleway

scaleway logo
Scaleway v1.11.0 published on Sunday, Oct 29, 2023 by lbrlabs

    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 "@lbrlabs/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 lbrlabs_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/lbrlabs/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 lbrlabs.PulumiPackage.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",
            });
        }
    }
    
    scaleway logo
    Scaleway v1.11.0 published on Sunday, Oct 29, 2023 by lbrlabs