Connect your account
To use our CaaS on Scaleway, you need to create a projet and provide rights to our CaaS. We will create infrastructure resources in that project. We don't need a global access to your account, only to one project (which is good for security). So, you can configure other services like a managed database in your Scaleway account, we will not see them.
After the connection of your Scaleway account, ScaleDynamics will create and manage resources in one of your project of your account. You should not modify, create, or delete these resources to avoid non deterministic behaviors of the ScaleDynamics platform. To interact with ScaleDynamics, please use only our SDK command lines or our console (http://console.scaledynamics.com).
To connect a Scaleway account, you need to gather several information on your side.
What you need to get:
- a projectId and a secretKey that provides access to that project management.
Connect to your Scaleway console
First, connect to Scaleway console using your credentials.
Get a projectId
First you have to create a project named 'scaledynamics' and get its ID (the projectId).
On the top left dropdown click on '+ create project'
Then set project name to 'scaledynamics' and click on 'Create Project' button.
After the creation, go in the 'settings' tab and note the projectId we will need it to create a scaleway connector.
Create a secretKey to give rights to ScaleDynamics CaaS
Add a public ScaleDynamics SSH key
In the project panel, go in the 'SSH keys' tab.
Then click on '+ Add a new SSH key and copy paste ScaleDynamics public ssh key below
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNK3JQu8+sRvvYNmHQXBLPUv+FjXptk1VOzPzf143UDro4fd1XvIcm86t7UuY4rvocqlC7nTVgURTU/OwW2oFbUc2n+xDZlIHDdCUbQ8CYfB7m8s7bCzfDcF2pwtyFhkSPs4v4zUxVOfarQIDXklLv2DhghAoMMqetLPz0SselC0qlFcWzx6xA9yKNppl7MR/ynspBikjuEZ85Qy3z+ZsBOsMi/DT/88TLaIoWeIbCImZhjobTDi94bUfRBaOIG0u9tHr0PoXSKrNxY72g/5PyoO9feUi95UsY6iSF6i1Xni6Q40YaFL2+8nKa/6Wte+daDt5M71sjNJZhjs1uIydB email@example.com
Add a required description, put 'scaledynamics' and click on 'Add SSH key'.
Get secretKey in IAM
Create a 'scaledynamics-policy' policy for the scaledynamics project
Using the top right dropdown, select IAM
Select the 'Policies' tab and click on the '+' button to create a new policy.
In the panel, create a policy named 'scaledynamics-policy' and click on 'Add rules'.
Then, select 'Access to resources', choose 'scaledynamics' project, then click on 'Validate'
Then, select 'AllProductsFullAccess' in permissions, and click on 'Validate'
Finalize the policy creation by clicking on the 'Create policy' button.
Create a 'scaledynamics-caas' application
Get back in IAM and select the 'Applications' tab and click on the '+' button to create a new application.
In the panel, set application name to 'scaledynamics-caas', attach the 'scaledynamics-policy' and click on 'Create application'.
Create a 'scaledynamics-key' API Key
Get back in IAM and select the 'API Key' tab and click on the '+' button to create a new API key.
Click on 'An application' and select 'scaledynamics-caas' application. Set the Description to 'scaledynamics-key', and click on 'Generate API key'
After creation, you'll see the key. Please note the 'Secret key' that we will use as the secretKey
Create the connector
On the ScaleDynamics console, select the 'cloud connectors' tab, then click on the '+ Cloud connector'. Select Scaleway. If it is the first time you add a Scaleway connector, for security reasons the owner will be invited to enable Scaleway provider cloud for the organzation.
Then, give a name and an optional description to your connector
At last, fill projectId and the API Key secretKey. Set an optional peremption date and click on 'Create' button.