google_apigee_addons_config

Configures the add-ons for the Apigee organization. The existing add-on configuration will be fully replaced.

To get more information about AddonsConfig, see:

Example Usage - Apigee Addons Basic

resource "google_apigee_addons_config" "test_organization" {
  org = "test_organization"

  addons_config {
    api_security_config {
      enabled = true
    }
    monetization_config {
      enabled = true
    }
  }
}

Example Usage - Apigee Addons Full

data "google_client_config" "current" {}

resource "google_project_service" "apigee" {
  project = data.google_client_config.current.project
  service = "apigee.googleapis.com"
}

resource "google_project_service" "compute" {
  project = data.google_client_config.current.project
  service = "compute.googleapis.com"
}

resource "google_project_service" "servicenetworking" {
  project = data.google_client_config.current.project
  service = "servicenetworking.googleapis.com"
}

resource "google_compute_network" "apigee_network" {
  name       = "apigee-network"
  project    = data.google_client_config.current.project
  depends_on = [ google_project_service.compute ]
}

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
  project       = data.google_client_config.current.project
}

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" "org" {
  analytics_region   = "us-central1"
  project_id         = data.google_client_config.current.project
  authorized_network = google_compute_network.apigee_network.id
  billing_type       = "EVALUATION"
  depends_on         = [
    google_service_networking_connection.apigee_vpc_connection,
    google_project_service.apigee
  ]
}

resource "google_apigee_addons_config" "test_organization" {
  org = google_apigee_organization.org.name

  addons_config {
    integration_config {
      enabled = true
    }
    api_security_config {
      enabled = true
    }
    connectors_platform_config {
      enabled = true
    }
    monetization_config {
      enabled = true
    }
    advanced_api_ops_config {
      enabled = true
    }
  }
}

Argument Reference

The following arguments are supported:


The addons_config block supports:

The advanced_api_ops_config block supports:

The integration_config block supports:

The monetization_config block supports:

The api_security_config block supports:

The connectors_platform_config block supports:

Attributes Reference

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

Timeouts

This resource provides the following Timeouts configuration options:

Import

AddonsConfig can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import AddonsConfig using one of the formats above. For example:

import {
  id = "organizations/{{name}}"
  to = google_apigee_addons_config.default
}

When using the terraform import command, AddonsConfig can be imported using one of the formats above. For example:

$ terraform import google_apigee_addons_config.default organizations/{{name}}
$ terraform import google_apigee_addons_config.default {{name}}