By clicking or navigating this website site, you agree to allow our collection of information on Scaleway to offer you an optimal user experience and to keep track of statistics through cookies. Learn more about our Cookie Policy.

Deploying web applications using Juju on Scaleway

Deploying web applications using Juju on Scaleway

Important

This provider is in “beta” and makes use of manual provisioning. Manual provisioning allows Juju users to implement any cloud provider’s API calls and act similar to a provider implemented in the Juju Core code base. You can access the provider source-code on github

This package provides a CLI plugin for Juju that allows automated provisioning of C1 BareMetal SSD servers on Scaleway.

Installation

The plugin installation is done via pypi, the Python package manager, available by default on Ubuntu. A virtualenv is also recommended to sandbox this install from your system packages:

pip install -U juju-scaleway

Configuration

Scaleway API keys

Before you can start using Juju with Scaleway, you need to get an API token.

API tokens are unique identifiers associated with your Scaleway account and consist of an Access Key (--o or -organisation in the Scaleway CLI) and a Secret Key (--t or -token in the Scaleway CLI). The Secret key is required to authenticate against our API and will only be displayed when you create the token. Make sure to take a note of it and to keep it secret.

The Secret key is required to authenticate against our API’s and will only be displayed when you create the token. Make sure to take a note of it and to keep it secret.

Open the drop-down menu on your account name and click on Credentials.

To generate a new token, click on Generate new token in the Tokens section of the page.

The Access Key and the Secret Key will show on your screen. Take a note of the Secret Key as it will not be recoverable.

In a terminal, export your credentials required by the plugin using environment variables:

As environment variables are not shared between shells, you will need to repeat this operation for every shell. You can avoid this repetition by adding this environment variables in your shell’s rc files, for instance append them to your ~/.bashrc or ~/.zshrc

Juju configuration

The next step is to add an environment for Scaleway in your '~/.juju/environments.yaml'. This environment looks like the following: