google_beyondcorp_app_connector

A BeyondCorp AppConnector resource represents an application facing component deployed proximal to and with direct access to the application instances. It is used to establish connectivity between the remote enterprise environment and GCP. It initiates connections to the applications and can proxy the data from users over the connection.

To get more information about AppConnector, see:

Open in Cloud Shell

Example Usage - Beyondcorp App Connector Basic

resource "google_service_account" "service_account" {
  account_id   = "my-account"
  display_name = "Test Service Account"
}

resource "google_beyondcorp_app_connector" "app_connector" {
  name = "my-app-connector"
  principal_info {
    service_account {
     email = google_service_account.service_account.email
    }
  }
}
Open in Cloud Shell

Example Usage - Beyondcorp App Connector Full

resource "google_service_account" "service_account" {
  account_id   = "my-account"
  display_name = "Test Service Account"
}

resource "google_beyondcorp_app_connector" "app_connector" {
  name = "my-app-connector"
  region = "us-central1"
  display_name = "some display name"
  principal_info {
    service_account {
     email = google_service_account.service_account.email
    }
  }
  labels = {
    foo = "bar"
    bar = "baz"
  }
}

Argument Reference

The following arguments are supported:

The principal_info block supports:

The service_account 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

AppConnector can be imported using any of these accepted formats:

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

import {
  id = "projects/{{project}}/locations/{{region}}/appConnectors/{{name}}"
  to = google_beyondcorp_app_connector.default
}

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

$ terraform import google_beyondcorp_app_connector.default projects/{{project}}/locations/{{region}}/appConnectors/{{name}}
$ terraform import google_beyondcorp_app_connector.default {{project}}/{{region}}/{{name}}
$ terraform import google_beyondcorp_app_connector.default {{region}}/{{name}}
$ terraform import google_beyondcorp_app_connector.default {{name}}

User Project Overrides

This resource supports User Project Overrides.