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:
resource "google_beyondcorp_app_gateway" "app_gateway" {
name = "my-app-gateway"
type = "TCP_PROXY"
region = "us-central1"
host_type = "GCP_REGIONAL_MIG"
}
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"
}
The following arguments are supported:
name
-
(Required)
ID of the AppGateway.region
-
(Optional)
The region of the AppGateway.
type
-
(Optional)
The type of network connectivity used by the AppGateway.
Default value is TYPE_UNSPECIFIED
.
Possible values are: TYPE_UNSPECIFIED
, TCP_PROXY
.
host_type
-
(Optional)
The type of hosting used by the AppGateway.
Default value is HOST_TYPE_UNSPECIFIED
.
Possible values are: HOST_TYPE_UNSPECIFIED
, GCP_REGIONAL_MIG
.
display_name
-
(Optional)
An arbitrary user-provided name for the AppGateway.
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}}/appGateways/{{name}}
state
-
Represents the different states of a AppGateway.
uri
-
Server-defined URI for this resource.
allocated_connections
-
A list of connections allocated for the Gateway.
Structure is documented below.
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.
The allocated_connections
block contains:
psc_uri
-
(Optional)
The PSC uri of an allocated connection.
ingress_port
-
(Optional)
The ingress port of an allocated connection.
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.AppGateway can be imported using any of these accepted formats:
projects/{{project}}/locations/{{region}}/appGateways/{{name}}
{{project}}/{{region}}/{{name}}
{{region}}/{{name}}
{{name}}
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}}
This resource supports User Project Overrides.