Google App Engine Application

This page shows how to write Terraform for App Engine Application and write them securely.

google_app_engine_application (Terraform)

The Application in App Engine can be configured in Terraform with the resource name google_app_engine_application. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub

computing.tf#L1
resource "google_app_engine_application" "default" {
  location_id = "asia-northeast1"

}

resource "google_app_engine_application" "worker" {
main.tf#L20
resource "google_app_engine_application" "graphql" {
  project     = var.gcp_project
  location_id = "us-central"
}

resource "google_app_engine_application" "ffmpeg" {
gcp-main.tf#L1
resource "google_app_engine_application" "app" {
  project     = "lab-devops-cloud-galindo"
  location_id = "us-central"
}
gcp-main.tf#L1
resource "google_app_engine_application" "app" {
  project     = "lab-devops-cloud-diego"
  location_id = "us-central"
}
gcp-main.tf#L1
resource "google_app_engine_application" "app" {
  project     = "lavdevopscloud-moisez"
  location_id = "us-east1"
}


Review your Terraform file for Google best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

  • app_id optional computed - string

Identifier of the app.

The domain to authenticate users with when using App Engine's User API.

The GCS bucket code is being stored in for this app.

The GCS bucket content is being stored in for this app.

The default hostname for this app.

The GCR domain used for storing managed Docker images for this app.

The location to serve the app from.

  • name optional computed - string

Unique name of the app.

The project ID to create the application under.

The serving status of the app.

A list of dispatch rule blocks. Each block has a domain, path, and service field.

Explanation in Terraform Registry

Allows creation and management of an App Engine application.

App Engine applications cannot be deleted once they're created; you have to delete the entire project to delete the application. Terraform will report the application has been successfully deleted; this is a limitation of Terraform, and will go away in the future. Terraform is not able to delete App Engine applications.

Warning: All arguments including iap.oauth2_client_secret will be stored in the raw state as plain-text. Read more about sensitive data in state.

Frequently asked questions

What is Google App Engine Application?

Google App Engine Application is a resource for App Engine of Google Cloud Platform. Settings can be wrote in Terraform.

Where can I find the example code for the Google App Engine Application?

For Terraform, the mfykmn/go-training, yutaroyoshikawa/tipper-terraform and rafagalindo/devopslab-infra source code examples are useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.