Google Apigee Environment

This page shows how to write Terraform for Apigee Environment and write them securely.

google_apigee_environment (Terraform)

The Environment in Apigee can be configured in Terraform with the resource name google_apigee_environment. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L10
resource "google_apigee_environment" "framework" {
  name         = "framework"
  display_name = "Framework"
  description  = "Environment for framework development."
  org_id       = module.apigee_org.org_id
}
apigee1.tf#L33
resource "google_apigee_environment" "apigee_env_1" {
  org_id = google_apigee_organization.apigee_org.id
  name   = "gcpdiag-demo-env-1"
}

resource "google_apigee_envgroup" "apigee_envgroup" {

Review your Terraform file for Google best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Description of the environment.

Display name of the environment.

  • id optional computed - string
  • name required - string

The resource ID of the environment.

The Apigee Organization associated with the Apigee environment, in the format 'organizations/[[org_name]]'.

Explanation in Terraform Registry

An Environment in Apigee. To get more information about Environment, see:

Frequently asked questions

What is Google Apigee Environment?

Google Apigee Environment is a resource for Apigee of Google Cloud Platform. Settings can be wrote in Terraform.

Where can I find the example code for the Google Apigee Environment?

For Terraform, the jaredkosanovic/apigee-x and GoogleCloudPlatform/gcpdiag source code examples are useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.