Skip to main content

Create Google Cloud projects

Overview

The DoiT Console allows you to create a Google Cloud Billing account directly. However, it doesn't allow you to create Google Cloud projects.

This page explains how to create new projects with DoiT Cloud Billing account using the Google Cloud console, the Google Cloud CLI, the Google Cloud API, and Terraform.

Required Permission

You need at least the Billing Account User role for the DoiT Cloud Billing account to be able to link the projects.

Google Cloud console

  1. Go to the Manage resources page in the Google Cloud console.

  2. Select your organization from the Organization drop-down list.

  3. Select Create Project.

  4. In the New Project window, select your DoiT Cloud Billing account from the Billing account drop-down list.

  5. Select Create when you've entered all the required information.

See also

Google Cloud CLI

  1. Run the following command to create a new project.


    gcloud projects create $PROJECT_ID --organization=$ORGANIZATION_ID

  2. Follow the instructions to link the project to your DoiT Cloud Billing account.

Google Cloud API

  1. Use the project.create() method to create a new project.

  2. Use the projects.updateBillingInfo method to link the project to your DoiT Cloud Billing account.

Terraform

  1. Follow the instructions to grant your Terraform service account the Billing Account User role on your DoiT billing account.

  2. Create a new project with the billing_account set to the DoiT Billing account ID.

    resource "google_project" "my_project" {
    name = "My Project"
    project_id = "my-project-id"
    org_id = "1234567"
    billing_account = "DoiT-Billing-Account-ID"
    }