Google App Engine Standard App Version

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

google_app_engine_standard_app_version (Terraform)

The Standard App Version in App Engine can be configured in Terraform with the resource name google_app_engine_standard_app_version. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L1
resource "google_app_engine_standard_app_version" "app_engine_front" {
  version_id = "v1"
  service    = "front"
  runtime    = "nodejs14"

  deployment{
main.tf#L19
resource "google_app_engine_standard_app_version" "todo-app" {
  version_id = "v4"
  service = "new"
  runtime = "nodejs10"

  entrypoint {

Parameters

  • delete_service_on_destroy optional - bool
  • env_variables optional - map / string
    • Environment variables available to the application.

  • id optionalcomputed - string
  • inbound_services optional - set / string
    • A list of the types of messages that this application is able to receive. Possible values: ["INBOUND_SERVICE_MAIL", "INBOUND_SERVICE_MAIL_BOUNCE", "INBOUND_SERVICE_XMPP_ERROR", "INBOUND_SERVICE_XMPP_MESSAGE", "INBOUND_SERVICE_XMPP_SUBSCRIBE", "INBOUND_SERVICE_XMPP_PRESENCE", "INBOUND_SERVICE_CHANNEL_PRESENCE", "INBOUND_SERVICE_WARMUP"]

  • instance_class optionalcomputed - string
    • Instance class that is used to run this version. Valid values are AutomaticScaling: F1, F2, F4, F4_1G BasicScaling or ManualScaling: B1, B2, B4, B4_1G, B8 Defaults to F1 for AutomaticScaling and B2 for ManualScaling and BasicScaling. If no scaling is specified, AutomaticScaling is chosen.

  • name requiredcomputed - string
    • Full path to the Version resource in the API. Example, "v1".

  • noop_on_destroy optional - bool
  • project optionalcomputed - string
  • runtime required - string
    • Desired runtime. Example python27.

  • runtime_api_version optional - string
  • service required - string
    • AppEngine service resource

  • threadsafe optional - bool
    • Whether multiple requests can be dispatched to this version at once.

  • version_id optional - string
    • Relative name of the version within the service. For example, 'v1'. Version names can contain only lowercase letters, numbers, or hyphens. Reserved names,"default", "latest", and any name with the prefix "ah-".

Explanation in Terraform Registry

Standard App Version resource to create a new version of standard GAE Application. Learn about the differences between the standard environment and the flexible environment at https://cloud.google.com/appengine/docs/the-appengine-environments. Currently supporting Zip and File Containers. To get more information about StandardAppVersion, see:

Frequently asked questions

What is Google App Engine Standard App Version?

Google App Engine Standard App Version 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 Standard App Version?

For Terraform, the n3rdkid/tf-gcp-v3 and danieljcorum/todo-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.