Tunnel destination groups represent resources that have the same tunnel access restrictions.
To get more information about TunnelDestGroup, see:
resource "google_iap_tunnel_dest_group" "dest_group" {
region = "us-central1"
group_name = "testgroup%{random_suffix}"
cidrs = [
"10.1.0.0/16",
"192.168.10.0/24",
]
}
The following arguments are supported:
group_name
-
(Required)
Unique tunnel destination group name.cidrs
-
(Optional)
List of CIDRs that this group applies to.
fqdns
-
(Optional)
List of FQDNs that this group applies to.
region
-
(Optional)
The region of the tunnel group. Must be the same as the network resources in the group.
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}}/iap_tunnel/locations/{{region}}/destGroups/{{group_name}}
name
-
Full resource name.
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.TunnelDestGroup can be imported using any of these accepted formats:
projects/{{project}}/iap_tunnel/locations/{{region}}/destGroups/{{group_name}}
{{project}}/iap_tunnel/locations/{{region}}/destGroups/{{group_name}}
{{project}}/{{region}}/{{group_name}}
{{region}}/destGroups/{{group_name}}
{{region}}/{{group_name}}
{{group_name}}
In Terraform v1.5.0 and later, use an import
block to import TunnelDestGroup using one of the formats above. For example:
import {
id = "projects/{{project}}/iap_tunnel/locations/{{region}}/destGroups/{{group_name}}"
to = google_iap_tunnel_dest_group.default
}
When using the terraform import
command, TunnelDestGroup can be imported using one of the formats above. For example:
$ terraform import google_iap_tunnel_dest_group.default projects/{{project}}/iap_tunnel/locations/{{region}}/destGroups/{{group_name}}
$ terraform import google_iap_tunnel_dest_group.default {{project}}/iap_tunnel/locations/{{region}}/destGroups/{{group_name}}
$ terraform import google_iap_tunnel_dest_group.default {{project}}/{{region}}/{{group_name}}
$ terraform import google_iap_tunnel_dest_group.default {{region}}/destGroups/{{group_name}}
$ terraform import google_iap_tunnel_dest_group.default {{region}}/{{group_name}}
$ terraform import google_iap_tunnel_dest_group.default {{group_name}}
This resource supports User Project Overrides.