1. Packages
  2. Scaleway
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

Scaleway

scaleway logo
Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse

    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 "@pulumiverse/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 pulumiverse_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/pulumiverse/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 Pulumiverse.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",
            });
        }
    }
    

    Issues

    This is a community maintained provider. Please file issues and feature requests here:

    pulumiverse/pulumi-scaleway

    scaleway logo
    Scaleway v1.20.0 published on Monday, Nov 4, 2024 by pulumiverse