Installation#

Provider Binary#

The Scaleway provider binary is a third party binary. It can be installed using the pulumi plugin command.

pulumi plugin install resource scaleway <version> --server github://api.github.com/pulumiverse

Replace the version string with your desired version.

Migrating from the LbrLabs package#

The maintenance of this provider has been transferred from LbrLabs to Pulumiverse. LbrLabs published up to v1.11.0, where Pulumiverse picks up with an initial v1.11.1 containing the renamed packages.

If you were using the LbrLabs edition, please update your dependencies to the Pulumiverse edition:

Programming Language LbrLabs name Pulumiverse name
JavaScript/TypeScript @lbrlabs/pulumi-scaleway @pulumiverse/scaleway
Python lbrlabs_pulumi_scaleway pulumiverse_scaleway
Go github.com/lbrlabs/pulumi-scaleway/sdk/go/scaleway github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway
.NET Lbrlabs.PulumiPackage.Scaleway Pulumiverse.Scaleway

Setup#

To provision resources with the Pulumi Scaleway provider, you need to have Scaleway credentials. Scaleway maintains documentation on how to create API keys here

Set environment variables#

Once you have provisioned these credentials, you can set environment variables to provision resources in Scaleway:

{{< chooser os "linux,macos,windows" >}} {{% choosable os linux %}}

$ export SCW_ACCESS_KEY=<SCW_ACCESS_KEY>
$ export SCW_SECRET_KEY=<SCW_SECRET_KEY>

{{% /choosable %}}

{{% choosable os macos %}}

$ export SCW_ACCESS_KEY=<SCW_ACCESS_KEY>
$ export SCW_SECRET_KEY=<SCW_SECRET_KEY>

{{% /choosable %}}

{{% choosable os windows %}}

> $env:SCW_ACCESS_KEY = "<SCW_ACCESS_KEY>"
> $env:SCW_SECRET_KEY = "<SCW_SECRET_KEY>"

{{% /choosable %}} {{< /chooser >}}

Configuration Options#

Use pulumi config set scaleway:<option> or pass options to the [constructor of new scaleway.Provider]({{< relref "/registry/packages/scaleway/api-docs/provider" >}}).

Option Environment Variables Required/Optional Description
access_key SCW_ACCESS_KEY Required Scaleway access key
secret_key SCW_SECRET_KEY Required Scaleway secret key
organization_id SCW_ORGANIZATION_ID Required The organization ID that will be used as default value for all resources.
project_id SCW_DEFAULT_PROJECT_ID Required The project ID that will be used as default value for all resources.
region SCW_DEFAULT_REGION Optional The region that will be used as default value for all resources. (fr-par if none specified)
zone SCW_DEFAULT_ZONE Optional The zone that will be used as default value for all resources. (fr-par-1 if none specified)

Was this page helpful?