google_apphub_application

Application is a functional grouping of Services and Workloads that helps achieve a desired end-to-end business functionality. Services and Workloads are owned by the Application.

Open in Cloud Shell

Example Usage - Application Basic

resource "google_apphub_application" "example" {
  location = "us-east1"
  application_id = "example-application"
  scope {
    type = "REGIONAL"
  }
}
Open in Cloud Shell

Example Usage - Application Full

resource "google_apphub_application" "example2" {
  location = "us-east1"
  application_id = "example-application"
  display_name = "Application Full"
  scope {
    type = "REGIONAL"
  }
  description = "Application for testing"
  attributes {
    environment {
      type = "STAGING"
        }
        criticality {  
      type = "MISSION_CRITICAL"
        }
        business_owners {
          display_name =  "Alice"
          email        =  "alice@google.com"
        }
        developer_owners {
          display_name =  "Bob"
          email        =  "bob@google.com"
        }
        operator_owners {
          display_name =  "Charlie"
          email        =  "charlie@google.com"
        }
  }
}

Argument Reference

The following arguments are supported:

The scope block supports:


The attributes block supports:

The criticality block supports:

The environment block supports:

The developer_owners block supports:

The operator_owners block supports:

The business_owners block supports:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

Timeouts

This resource provides the following Timeouts configuration options:

Import

Application can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import Application using one of the formats above. For example:

import {
  id = "projects/{{project}}/locations/{{location}}/applications/{{application_id}}"
  to = google_apphub_application.default
}

When using the terraform import command, Application can be imported using one of the formats above. For example:

$ terraform import google_apphub_application.default projects/{{project}}/locations/{{location}}/applications/{{application_id}}
$ terraform import google_apphub_application.default {{project}}/{{location}}/{{application_id}}
$ terraform import google_apphub_application.default {{location}}/{{application_id}}

User Project Overrides

This resource supports User Project Overrides.