Scaleway datasource uses data provided by the Scaleway metadata service to do initial configuration of the network services.
The metadata service is reachable at the following addresses :
Scaleway datasource may be configured in system configuration (in /etc/cloud cloud.cfg) or by adding a file with the .cfg suffix containing the following information in the /etc/cloud.cfg.d directory:
Controls the maximum number of attempts to reach the metadata service.
Controls the number of seconds to wait for a response from the metadata service for one protocol.
Controls the number of seconds to wait for a response from the metadata service for all protocols.
List of additional URLs to be used in an attempt to reach the metadata service in addition to the existing ones.
cloud-init fetches user data using the metadata service using the /user_data endpoint. Scaleway’s documentation provides a detailed description on how to use userdata. One can also interact with it using the userdata api.