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:
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
}
}
}
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"
}
}
The following arguments are supported:
name
-
(Required)
ID of the AppConnector.
principal_info
-
(Required)
Principal information about the Identity of the AppConnector.
Structure is documented below.
The principal_info
block supports:
service_account
-
(Required)
ServiceAccount represents a GCP service account.
Structure is documented below.The service_account
block supports:
email
-
(Required)
Email address of the service account.region
-
(Optional)
The region of the AppConnector.
display_name
-
(Optional)
An arbitrary user-provided name for the AppConnector.
labels
-
(Optional)
Resource labels to represent user provided metadata.
Note: This field is non-authoritative, and will only manage the labels present in your configuration.
Please refer to the field effective_labels
for all of the labels present on the resource.
project
- (Optional) The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format projects/{{project}}/locations/{{region}}/appConnectors/{{name}}
state
-
Represents the different states of a AppConnector.
terraform_labels
-
The combination of labels configured directly on the resource
and default labels configured on the provider.
effective_labels
-
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Terraform, other clients and services.
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.AppConnector can be imported using any of these accepted formats:
projects/{{project}}/locations/{{region}}/appConnectors/{{name}}
{{project}}/{{region}}/{{name}}
{{region}}/{{name}}
{{name}}
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}}
This resource supports User Project Overrides.