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 standard environment, you typically need to create or set up the following:
Creating a project and application
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.
Console
To create a Cloud Platform project and App Engine application:
Go to the App Engine page:
Select or create a Cloud Platform project.
In the Your first app with Python page, select a region to specify where you want your App Engine application located. More information about App Engine locations help_outline
After the App Engine application is created 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:
Run the following alpha command to create a Cloud Platform project:
gcloud alpha projects create
Run the following command to select a region and create an App Engine application:
gcloud app create
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:
To create a Cloud Platform project, see Creating a New Project.
To create an App Engine application, see Creating App Engine Applications.
App Engine Locations
App Engine is regional, which means the infrastructure that runs your apps is located in a specific region and is managed by Google to be redundantly available across all the zones within that region.
Meeting your latency, availability, or durability requirements are primary factors for selecting the region where your app's are run. You can generally select the region nearest to your app's users but you should consider the location of the other Cloud Platform products and services that are utilized by your app. Using services across multiple locations can affect your app's latency as well as pricing.
App Engine is available in the following regions:
- us-central
- us-east1
- europe-west
- asia-northeast1
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 project, then billing will automatically be enabled for that project.To enable billing in a Cloud Platform project:
-
In the Cloud Platform Console, go to the Billing page:
-
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.
-
For more information, see Billing settings.
Setting a spending limit
You can set a daily spending limit only for your App Engine resources.
Remember: The spending limit does not apply to other Google Cloud Platform resources and you will be charged for their usage.
To set a daily spending limit for the App Engine resources in a Cloud Platform project:
-
In the Cloud Platform Console, go to the Application settings page:
-
Click Edit and specify a spending limit. When you increase the daily spending limit, the new limit takes effect immediately.
-
Click Save to set the spending limit for this project. If you have multiple Cloud Platform projects, you must individually set spending limits in each project.
For more information, see Spending Limits.
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.
- Set up an alert for when monthly charges exceed a threshold on the Budgets & alerts page.
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:
Go to the Projects page:
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.