google_beyondcorp_app_gateway

A BeyondCorp AppGateway resource represents a BeyondCorp protected AppGateway to a remote application. It creates all the necessary GCP components needed for creating a BeyondCorp protected AppGateway. Multiple connectors can be authorised for a single AppGateway.

To get more information about AppGateway, see:

Open in Cloud Shell

Example Usage - Beyondcorp App Gateway Basic

resource "google_beyondcorp_app_gateway" "app_gateway" {
  name = "my-app-gateway"
  type = "TCP_PROXY"
  region = "us-central1"
  host_type = "GCP_REGIONAL_MIG"
}
Open in Cloud Shell

Example Usage - Beyondcorp App Gateway Full

resource "google_beyondcorp_app_gateway" "app_gateway" {
  name = "my-app-gateway"
  type = "TCP_PROXY"
  region = "us-central1"
  display_name = "some display name"
  labels = {
    foo = "bar"
    bar = "baz"
  }
  host_type = "GCP_REGIONAL_MIG"
}

Argument Reference

The following arguments are supported:


Attributes Reference

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

The allocated_connections block contains:

Timeouts

This resource provides the following Timeouts configuration options:

Import

AppGateway can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/locations/{{region}}/appGateways/{{name}}"
  to = google_beyondcorp_app_gateway.default
}

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

$ terraform import google_beyondcorp_app_gateway.default projects/{{project}}/locations/{{region}}/appGateways/{{name}}
$ terraform import google_beyondcorp_app_gateway.default {{project}}/{{region}}/{{name}}
$ terraform import google_beyondcorp_app_gateway.default {{region}}/{{name}}
$ terraform import google_beyondcorp_app_gateway.default {{name}}

User Project Overrides

This resource supports User Project Overrides.