Managing GCP Projects, App Engine Applications, and Billing

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

From the Google Cloud Platform Console, Cloud SDK, and App Engine Admin API, you can perform all of your administrative tasks, including the common tasks covered in this topic.

Before you can deploy your apps to the App Engine standard environment, you typically need to create or set up the following:

  1. A GCP project
  2. An App Engine application
  3. Optional: A billing account

Creating a project and application

You can select or create a new Google Cloud Platform project and App Engine application to create and manage a collection of settings, credentials, and your app's metadata.

Only the Owner role has privileges to create an App Engine application in a GCP project and that application must exist before any other account can perform tasks on that application. For example, the App Engine application must be created before an account with the App Engine Deployer role can deploy an app using a service account.


To create a GCP project and App Engine application:

  1. Go to the App Engine page:

    Go to the App Engine page

  2. Select or create a GCP project.

  3. In the Your first app with Python 2 page, select a region to specify where you want your App Engine application located.
    More information about App Engine locationshelp_outline

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


After installing Cloud SDK, an account with the GCP project Owner role can run the following gcloud commands to create a GCP project and App Engine application:

  1. Run the following command to create a GCP project:

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

    gcloud app create


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

  1. To create a GCP project, see Creating a New Project.

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

Enabling billing

If your application needs resources that exceed the free quotas, you must enable billing to increase some of the quotas and pay for the additional usage. If you have a billing account when you create a GCP project, then billing is automatically enabled on that project.

To enable billing on a GCP project:

  1. In the GCP Console, go to the Billing page:

    Go to the Billing page

  2. Select or create a GCP project.

  3. Depending on if a billing account exists or if the selected GCP project is associated with an account, the Billing page displays one of the following:

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

    • If no billing account exists, you are prompted to create a billing account and associate it with the selected GCP project.

    • If a billing account exists, you are prompted to enable billing if the selected GCP project is not already associated with a billing account. You can also click Cancel and then click Create account to create and associate a new billing account.

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 set an approximate daily spending limit. Spending limits are not supported in the App Engine flexible environment.

Setting a spending limit

You can set a daily spending limits only for your App Engine resources that are running in the standard environment.

Spending limits are supported only in the App Engine standard environment. In the flexible environment, you can create budgets and set alarms.

To set a daily spending limit for the App Engine resources in a GCP project:

  1. In the GCP Console, go to the Application settings page:

    Go to the Application settings page

  2. Click Edit and specify a spending limit. When you increase the daily spending limit, the new limit takes effect immediately.

  3. Click Save to set the spending limit for this GCP project. If you have multiple GCP projects, you must individually set spending limits in each project.

Managing billing

Use the Billing page to manage your billing accounts:

  1. Go to the Billing page in the GCP Console:

    Go to the Billing page

  2. Select the account that you want to manage and then navigate to the corresponding page to perform the following management tasks:

    • See an overview of your billing account, make payments, and add billing account administrators from the Overview page.
    • Create budgets and alerts on the Budgets & alerts page.
    • View your transaction history and download invoices from the Transactions page.
    • Export your billing data to a BigQuery Dataset from the Billing export page.
    • Configure your payment account and contacts on the Payment settings page.
    • Set the method of payment on the Payment method page.

For more information about billing, see the Pricing page.

Creating budgets and setting alerts

You can create a budget for a GCP 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 GCP project:

  1. In the GCP Console, go to the Billing page:

    Go to the Billing page

  2. Click the billing account for which you want to create a budget.

  3. Click Budgets & alerts and then Create budget to begin creating a budget for your GCP project.

  4. 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.

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

Disabling billing

After you enable billing, you can stop automatic payments for a GCP project by disabling billing for the project. Alternatively, if you want to release some of the resources used in a project, you can disable your application. If you don't need your GCP project, release all of the resources by shutting down the project.

Disabling an application

Disable an App Engine application to stop your app from running instances and serving requests. No data loss will occur when you disable your app, nor will any configuration settings change. Simply re-enable your App Engine application to startup instances and continue serving the traffic to your app.

Your app's resources in both the standard and flexible environment are disabled and therefore, won't incur charges. However, billing charges can still occur for the other services in your GCP project, for example you can still incur storage charges for your stored data.

If your app is actively processing a request, it will continue to complete that task and can take up to an hour before your app is completely disabled.

To disable an App Engine application:

  1. Go to the Application settings page:

    Go to the Application settings page

  2. Click Disable application and then follow the prompts.

When you want your app to continue serving requests, enable the App Engine application by returning to the same Application settings page and then clicking Enable application.

Disabling your application stops all serving requests, but your data and state are retained. You will still be billed for applicable charges already incurred or charges for other services running in your project, such as Cloud SQL. To release all the resources used within the project, shut down your project.

Shutting down a project

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


To shut down a GCP project using the GCP Console:

  1. Go to the Projects page:

    Go to the Projects page

  2. Select the GCP project that you want to shut down, then click .

For more information about managing your GCP projects, see Cloud Resource Manager: creating, shutting down, and restoring projects.


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

gcloud projects delete


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

Was this page helpful? Let us know how we did:

Send feedback about...

App Engine standard environment for Python 2