Google Compute Engine

You can use Cloud 66 to provision and deploy your code to servers in any Google Compute Engine (GCE) region.

Generate GCE API keys

You need to provide your GCE API keys in order for Cloud 66 to access your account. To generate these:

  1. Access the Console of your Google account
  2. Create a project (if you don’t already have one)
  3. Switch to your desired project
  4. Use the search bar at the top of the page to search for “APIs & Services” and click the first result
  5. Click on the blue button (at the top of the main panel) named + Enable APIs and Services
  6. Search the API library for “Compute Engine API” and click on the top result
  7. If the page does not have a green tick with “API enabled” click the blue Enable button (newer accounts tend to have the API already enabled, but it is worth checking)
  8. Return to the “APIs & Services” dashboard (you can use search as you did in step 4)
  9. Click on Credentials in the left-hand panel
  10. Click on + Create Credentials at the top of the page; Select Service Account
  11. Give your service account a name (like “cloud66”) and an optional description; Click Create
  12. Add the role “Compute Admin” and then click Continue (NOTE: this will grant Cloud 66 the rights to create/amend/delete compute resources in this project)
  13. Leave the User Access options blank; Click Create Key, and select JSON then click Create.
  14. Download and save your JSON key somewhere locally (this contains your credentials, so treat it with care)
  15. Click Done

Once the above is done, we will need three things to connect with your account:

  1. Email address - this is the email address of the service account you just created (ie. like cloud66@.iam.gserviceaccount.com)
  2. Project ID - this is your project ID (available at the top of the Overview page)
  3. JSON key - the file that you downloaded and saved above

Permissions issues with GCE trial accounts

If you set up your API access while using a free trial account, you may need to recreate your credentials when you transition to a paid account. Get more info here.

Note

Depending on the age of your Google account, you may need to "+ Enable APIs and Services" in the API list under APIs & Services for this integration to work

Add GCE keys to an application

Visit the Cloud 66 Dashboard and click the green New Application button. After connecting to your Git repository and analyzing your code, you will be asked to Add your cloud platform. From this menu, select Google Compute Cloud and provide your credentials.

Note

If you delete your application from Cloud 66, your servers will not be deleted on your cloud provider unless the physical server deletion setting is turned on.