Skip to main content

EnOSlib provider for Scaleway Instances

Project description

Enoslib ScalewayInstances plugin

Installation

Some functionnalities (enabling IPv6) requires the user to have the scaleway cli installed, see: section.

pip install -e .

Checkout example

Rationale

This ScalewayInstances provider is quite opiniated, it deploys scaleway instances according to two different 'architectures', which are different ways to organize your instances:

"private_network" architecture

It is configured to deploy a number of configured nodes defined by the user in the configuration and then put all those instances in a private network with a public gateway.

Unless you request public IPs with the dynamic_ip_required parameter, your instances will not be available to outside providers or users. If you want to expose certain services, you can forward ports from your instances to the public gateway (see the example)

"standalone" architecture

This will just deploy instances with public addresses and no private network/gateway setup.

You can setup firework with the open_firewall function.

Zone non-support

Support for setting zone and regions of your instances is not available in this provider for the moment, zones and regions will default to the defaults of your configuration.

Recommendations

Install the scaleway CLI as it is a good tool to check your running instances or parse information

https://www.scaleway.com/fr/cli/

Useful commands

Check running instances

scw instance server list 
# With specifying zone 
scw instance server list zone="fr-par-1"

Terminate a running instances

scw instance server terminate <INSTANCE_ID>

List existing public gateways

scw vpc-gw gateway list

Delete existing public gateway

scw vpc-gw gateway delete <NETWORK_ID>

List existing private networks

scw vpc private-network list

Delete existing private network

scw vpc private-network delete <NETWORK_ID>

List available commercial types

scw instance server-type list 

List available OS images

scw marketplace image list

SSH to a machine in a private network

Since the public gateway deployed on the private network has bation activated, the command to connect to a instance behind the bastion looks like this:

ssh -J bastion@<gateway_IP_address>:61000 root@<instance_IP_address>

Where <instance_IP_address> is either the instance's public IP address or its private alias in the form of : <instance_name>.<private_network_name>.internal.

Future improvements

  • Improve IPv6 handling
  • Improve volume handling, e.g. add options to set volume size
  • Improve zone / region support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enos_scalewayinstances-0.1.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

enos_scalewayinstances-0.1.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file enos_scalewayinstances-0.1.0.tar.gz.

File metadata

  • Download URL: enos_scalewayinstances-0.1.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"42","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for enos_scalewayinstances-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a013c8d5bdc03af7bbfe5bb202f1bd9081633f20a9f09fea46c3a780e92c5478
MD5 9883ee6f02ba3cde4f6b55f35492eaa6
BLAKE2b-256 d2e5c7bd0578b847aa554ca21267c6d931dfee80a058ffcc90e776330af1af14

See more details on using hashes here.

File details

Details for the file enos_scalewayinstances-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: enos_scalewayinstances-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"42","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for enos_scalewayinstances-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7938980a7ed6a409fff5bd8ba90c0e811ea4f984522981e18c2800fa68f18d97
MD5 50905b8a0e6414f1ce9833e0180015ac
BLAKE2b-256 a6addf7b4d28a5a30fe200180d1dbc46d452b77fc002e00d9fcde932788fcd0f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page