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

github-iconmfykmn/go-training
resource "google_app_engine_application" "default" {
  location_id = "asia-northeast1"

}

resource "google_app_engine_application" "worker" {
github-iconyutaroyoshikawa/tipper-terraform
resource "google_app_engine_application" "graphql" {
  project     = var.gcp_project
  location_id = "us-central"
}

resource "google_app_engine_application" "ffmpeg" {
github-iconrafagalindo/devopslab-infra
resource "google_app_engine_application" "app" {
  project     = "lab-devops-cloud-galindo"
  location_id = "us-central"
}
github-icondiegomendesmoreno/devopslab-infra
resource "google_app_engine_application" "app" {
  project     = "lab-devops-cloud-diego"
  location_id = "us-central"
}
github-iconmoisezdantas/devopslab-infra
resource "google_app_engine_application" "app" {
  project     = "lavdevopscloud-moisez"
  location_id = "us-east1"
}


Parameters

  • app_id requiredcomputed - string
    • Identifier of the app.

  • auth_domain optionalcomputed - string
    • The domain to authenticate users with when using App Engine's User API.

  • code_bucket requiredcomputed - string
    • The GCS bucket code is being stored in for this app.

  • database_type optionalcomputed - string
  • default_bucket requiredcomputed - string
    • The GCS bucket content is being stored in for this app.

  • default_hostname requiredcomputed - string
    • The default hostname for this app.

  • gcr_domain requiredcomputed - string
    • The GCR domain used for storing managed Docker images for this app.

  • id optionalcomputed - string
  • location_id required - string
    • The location to serve the app from.

  • name requiredcomputed - string
    • Unique name of the app.

  • project optionalcomputed - string
    • The project ID to create the application under.

  • serving_status optionalcomputed - string
    • The serving status of the app.

  • url_dispatch_rule requiredcomputed - list / object
    • 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

Scan your IaC problem in 3 minutes for free

You can keep your IaC security for free. No credit card required.