Skip to content

googleBeyondcorpAppGateway

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:

Example Usage - Beyondcorp App Gateway Basic

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.beyondcorpAppGateway.BeyondcorpAppGateway(this, "app_gateway", {
  host_type: "GCP_REGIONAL_MIG",
  name: "my-app-gateway",
  region: "us-central1",
  type: "TCP_PROXY",
});

Example Usage - Beyondcorp App Gateway Full

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
new google.beyondcorpAppGateway.BeyondcorpAppGateway(this, "app_gateway", {
  display_name: "some display name",
  host_type: "GCP_REGIONAL_MIG",
  labels: [
    {
      bar: "baz",
      foo: "bar",
    },
  ],
  name: "my-app-gateway",
  region: "us-central1",
  type: "TCP_PROXY",
});

Argument Reference

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 typeUnspecified. Possible values are typeUnspecified and tcpProxy.

  • hostType - (Optional) The type of hosting used by the AppGateway. Default value is hostTypeUnspecified. Possible values are hostTypeUnspecified and gcpRegionalMig.

  • displayName - (Optional) An arbitrary user-provided name for the AppGateway.

  • labels - (Optional) Resource labels to represent user provided metadata.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Attributes Reference

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.

  • allocatedConnections - A list of connections allocated for the Gateway. Structure is documented below.

The allocatedConnections block contains:

  • pscUri - (Optional) The PSC uri of an allocated connection.

  • ingressPort - (Optional) The ingress port of an allocated connection.

Timeouts

This resource provides the following Timeouts configuration options:

  • create - Default is 20 minutes.
  • delete - Default is 20 minutes.

Import

AppGateway can be imported using any of these accepted formats:

$ 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.