Connect your account
To use our CaaS on Google Cloud, 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 Google Cloud account, we will not see them.
After the connection of your Google Cloud 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 Google Cloud account, you need to gather several information on your side: an email, a privateKey, and a projectID.
Connect to your Google Cloud console
First, connect to Google Cloud console
Create a 'scaledynamics-caas' project and get projectID
Click on the top left dropdow
On the panel click on 'New project'.
On the panel, set project name to 'scaledynamics-caas', and click on 'Create' button. You can change attached organization and location according to your needs.
On the top right dropdow select 'scaledynamics-caas' project. Access the project dashboard and you will find on the project ID to use as the projectID
Create a service account for that project and get the email
Select the project 'scaledynamics-caas' in the top left dropdown. Click on the top left icon, and select 'IAM & Admin' and 'Service accounts'
Click on '+ CREATE SERVICE ACCOUNT'
On the panel, put 'Service account name' to 'scaledynamics', 'description' to 'scaledynamics service account'. Then click on 'CREATE and CONTINUE' button.
On the panel, add 'Owner' Role, then click on 'Done' button.
On the service accounts panel, you will see a recap of your different service accounts. You will find the 'scaledynamics' service line. On that line, you'll get an email that you can copy and use as the email for your connector info.
Add key for the service account and get the privateKey
The next step is to create a private key. On the 'scaledynamics' service account line, click on the three bullets at the right, and select 'Manage keys'
On the next panel, select 'Add keys', 'Create a new key'
On the next panel, select 'JSON' and click on 'Create'
A JSON file will be uploaded in your browser.
Open the JSON file. Copy the property
private_key as privateKey to use it when creating the connector.
The last step is to enable compute engine APIs. on the top left dropdown, select 'scaledynamics-caas' project, then access the dashboard.
On the API panel, click on 'Go to APIs overview'
Then, click on '+ Enable APIs and services'
On the API search, type 'compute engine'.
Click on 'compute engine' icon, and click on Enable and wait for enabling done.
Create the connector
Now you're ready to add a connector. On the ScaleDynamics console, select the 'cloud connectors' tab, then click on the '+ Cloud connector'. Select Google Cloud.
Then, give a name and an optional description to your connector
At last, fill email, privateKey, and projectID. Set an optional peremption date and click on 'Create' button.