Skip to content

googleApigeeEnvgroup

An environmentGroup in Apigee.

To get more information about Envgroup, see:

Example Usage - Apigee Environment Group Basic

data "google_client_config" "current" {}

resource "google_compute_network" "apigee_network" {
  name = "apigee-network"
}

resource "google_compute_global_address" "apigee_range" {
  name          = "apigee-range"
  purpose       = "VPC_PEERING"
  address_type  = "INTERNAL"
  prefix_length = 16
  network       = google_compute_network.apigee_network.id
}

resource "google_service_networking_connection" "apigee_vpc_connection" {
  network                 = google_compute_network.apigee_network.id
  service                 = "servicenetworking.googleapis.com"
  reserved_peering_ranges = [google_compute_global_address.apigee_range.name]
}

resource "google_apigee_organization" "apigee_org" {
  analytics_region   = "us-central1"
  project_id         = data.google_client_config.current.project
  authorized_network = google_compute_network.apigee_network.id
  depends_on         = [google_service_networking_connection.apigee_vpc_connection]
}

resource "google_apigee_envgroup" "env_grp" {
  name      = "tf-test%{random_suffix}"
  hostnames = ["abc.foo.com"]
  org_id    = google_apigee_organization.apigee_org.id
}

Argument Reference

The following arguments are supported:

  • name - (Required) The resource ID of the environment group.

  • orgId - (Required) The Apigee Organization associated with the Apigee environment group, in the format organizations/{{orgName}}.


  • hostnames - (Optional) Hostnames of the environment group.

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format {{orgId}}/envgroups/{{name}}

Timeouts

This resource provides the following Timeouts configuration options:

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

Import

Envgroup can be imported using any of these accepted formats:

$ terraform import google_apigee_envgroup.default {{org_id}}/envgroups/{{name}}
$ terraform import google_apigee_envgroup.default {{org_id}}/{{name}}