Introduction¶
At this page, we describe how to generate credentials of cloud providers and use them in D2C.
Supported cloud providers¶
Amazon Web Services¶
Video tutorial¶
AWS QuickStart integration¶
- Sign in into your D2C account
- Click Create cloud host or move to providers page
- Click Add provider and choose Amazon Web Services
- Paste your AWS credentials (Access Key ID and Secret Access Key)
Generate AWS credentials¶
If you do not have AWS credentials, you can create one with the AWS Management console
- From the AWS IAM Users dashboard, select Add user
- Enter a username (e.g. d2c). Select the “Programmatic access” checkbox and click Next: Permissions
- Select the “Attach existing policies directly” button at the top. Search for the AdministratorAccess policy, select it, then click Next: Review
- Click Create user
- Copy Access Key ID and Secret Access Key or save a .csv file with the download button
- Then follow the AWS quickstart integration
Create an additional policy¶
- Open the AWS policies page
- Click Create policy
- Select Create Your Own Policy
- Enter a name (e.g. d2c-policy)
-
You can generate your own policy here. Here is a simple example of the region’s limit (replace “eu-west-1” with regions you want to use):
{ "Version": "2012-10-17", "Statement": [ { "Action": [ "ec2:*" ], "Effect": "Allow", "Resource": "*", "Condition": { "StringEquals": { "ec2:Region": "eu-west-1" } } } ] }
-
Click Create policy
- Now you can Generate AWS credentials with your own policy
Google Cloud Platform¶
Video tutorial¶
GCP QuickStart integration¶
Note
Make sure that you have enabled API for Compute Engine and have a billing account in GCP
- Sign in into your D2C account
- Click Create cloud host or move to providers page
- Click Add provider and choose Google Cloud
- Upload your JSON file of your Service account with credentials
Generate GCP JSON file¶
If you do not have GCP JSON file, you can create one with the GCP console
- Create a new project in GCP if it needs
- From the GCP APIs & Services click ENABLE APIS AND SERVICES, find Compute Engine API and click Enable
- Then go to Credentials and choose a created Service Account (it should redirect you to IAM & admin/Service accounts)
- At the Service accounts page create a new key for a created service account (Actions → ⋮ → Create key) in JSON format
- Then follow the GCP quickstart integration
DigitalOcean¶
If you don’t have a DigitalOcean account you can register with this link and get free credit - $100.
Video tutorial¶
DigitalOcean QuickStart integration¶
- Sign in into your D2C account
- Click Create cloud host or move to providers page
- Click Add provider and choose DigitalOcean
- Click connect and sign in into your DigitalOcean account
Vultr¶
If you don’t have a Vultr account you can register with this link and get free credit - $50.
Video tutorial¶
Vultr QuickStart integration¶
Note
To allow D2C manage Vultr hosts, you should add 52.58.244.78/32 and 52.57.161.208/32 IP at the Access Control block
- Sign in into your D2C account
- Click Create cloud host or move to providers page
- Click Add provider and choose Vultr
- Paste your Vultr API key
Authorize D2C to your Vultr¶
If you do not have Vultr API key, you can create one with the Vultr account
- Open the Vultr API page
- Click Enable API and copy API key
- Add 52.58.244.78/32 and 52.57.161.208/32 IP at the Access Control block
- Then follow the Vultr QuickStart integration
UpCloud¶
If you don’t have an Upcloud account you can register with this link and get free credit - $25.
Video tutorial¶
UpCloud QuickStart integration¶
- Sign in into your D2C account
- Click Create cloud host or move to providers page
- Click Add provider and choose UpCloud
- Paste your API username and API password
Create API user¶
- Open the UpCloud User Accounts page
- Click Add user
- Fill in account details as username, password, phone etc.
- Disable access to Control Panel
- Allow API connections from All addresses
- Then follow the UpCloud QuickStart integration