Managing Cloud Platform Projects, App Engine Applications, and Billing

A Google Cloud Platform project contains your App Engine application as well as other Cloud Platform resources.

From the Google Cloud Platform Console, you can perform all of your administrative tasks, including the common tasks covered in this topic. For general information about using the console, see the console guide.

Before you can deploy your apps to the App Engine flexible environment, you typically need to create a project and application with billing enabled.

Creating a project and application with billing enabled

Create a Google Cloud Platform project and App Engine application to create and manage a collection of settings, credentials, and your app's metadata.

To deploy your apps to a Cloud Platform project, you must create a corresponding App Engine application, which defines the location from where you want your App Engine services run. For the App Engine flexible environment, you must also enable billing in your projects.

Console

To create a Cloud Platform project and App Engine application with billing enabled:

  1. Go to the App Engine page:

    Go to the App Engine page

  2. Select or create a Cloud Platform project.

  3. In the Your first app with Python page, select a region and enable billing:

    1. Select a region to specify where you want to your App Engine application located.
      More information about App Engine locations help_outline

    2. Select or create a billing account to enable billing in your project.

After the App Engine application is created and billing is enabled in your project, the Dashboard page opens.

gcloud

After installing the Google Cloud SDK, you run the following gcloud commands to create a Cloud Platform project and App Engine application:

  1. Run the following command to create a Cloud Platform project:

    gcloud projects create

  2. Run the following command to select a region and create an App Engine application:

    gcloud app create
  3. Enable billing in the Billing page of the Cloud Platform Console, see Enabling billing for details.

API

To programmatically create a Cloud Platform project and App Engine application, you use both the Google Cloud Resource Manager API and Google App Engine Admin API:

  1. To create a Cloud Platform project, see Creating a New Project.

  2. To create an App Engine application, see Creating App Engine Applications.

  3. Enable billing in the Billing page of the Cloud Platform Console, see Enabling billing for details.

Enabling billing

To deploy your apps to the App Engine flexible environment, you must enable billing. If you have a billing account when you create a project, then billing will automatically be enabled for that project.

To enable billing in a Cloud Platform project:

  1. In the Cloud Platform Console, go to the Billing page:

    Go to the Billing page

  2. Create a new billing account or associate an existing account with a project:

    • If billing is already enabled, then the billing account details for the project are listed.

    • If a billing account exists, you are prompted to associate an existing account with your project. You can also click Cancel and then New billing account to create and use another account.

    • If no account exists, you are prompted to add a billing account to your project.

After you enable billing, there is no limit to the amount that you might be charged. To gain more control over your application's costs, you can create a budget and set alerts. Spending limits are not supported in the App Engine flexible environment.

Managing billing

To manage a billing account, go to the Billing Accounts page in the Cloud Platform Console:

Go to the Billing Accounts page

Select the account to:

  • View your transaction history for the account and make a payment on the History page.
  • Change your payment method on the Payment settings page.
  • Add billing administrators on the Overview page.

For more information, see Managing billing.

Creating budgets and setting alerts

You can create a budget for a Cloud Platform project to avoid surprises on your bill and monitor all of your Google Cloud Platform charges from one place. With a budget, you can create alerts that send emails to your billing administrators when charges exceed a certain amount.

To create a budget and set alerts in a Cloud Platform project:

  1. In the Cloud Platform Console, go to the Billing page:

    Go to the Billing page

  2. Click Budgets & alerts and then Create budget to begin creating a budget for your Cloud Platform project.

  3. Define your budget in the Set budget section and then specify the percentages for which you want to receive email alerts in the following Set budget alerts section.

  4. Click Save to set the budget and enable alerts for your Cloud Platform project. If you have multiple Cloud Platform projects, you must individually set budgets and alerts in each project.

Disabling billing

After you enable billing, you can stop automatic payments for a project by disabling billing for the project. Alternatively, if you also want to release all the resources used in a project, you can shut down the project.

Shutting down a project

You can disable billing and release all the Cloud Platform resources that are being used in your Cloud Platform project by shutting down that project.

Console

To shut down projects using the Cloud Platform Console:

  1. Go to the Projects page:

    Go to the Projects page

  2. Select the Cloud Platform project that you want to shut down and then click Delete Project.

For more information about managing your Cloud Platform projects, see the Cloud Platform Console help page about creating, shutting down, and restoring projects.

gcloud

After installing the Google Cloud SDK, you run the following gcloud command to shut down a Cloud Platform project:

gcloud projects delete

API

To programmatically shut down your Cloud Platform project, see Shutting Down a Project in the Google Cloud Resource Manager API.

Send feedback about...

App Engine flexible environment for Python docs