Configures the add-ons for the Apigee organization. The existing add-on configuration will be fully replaced.
To get more information about AddonsConfig, see:
resource "google_apigee_addons_config" "test_organization" {
org = "test_organization"
addons_config {
api_security_config {
enabled = true
}
monetization_config {
enabled = true
}
}
}
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
}
}
}
The following arguments are supported:
org
-
(Required)
Name of the Apigee organization.addons_config
-
(Optional)
Addon configurations of the Apigee organization.
Structure is documented below.The addons_config
block supports:
advanced_api_ops_config
-
(Optional)
Configuration for the Monetization add-on.
Structure is documented below.
integration_config
-
(Optional)
Configuration for the Monetization add-on.
Structure is documented below.
monetization_config
-
(Optional)
Configuration for the Monetization add-on.
Structure is documented below.
api_security_config
-
(Optional)
Configuration for the Monetization add-on.
Structure is documented below.
connectors_platform_config
-
(Optional)
Configuration for the Monetization add-on.
Structure is documented below.
The advanced_api_ops_config
block supports:
enabled
-
(Optional)
Flag that specifies whether the Advanced API Ops add-on is enabled.The integration_config
block supports:
enabled
-
(Optional)
Flag that specifies whether the Advanced API Ops add-on is enabled.The monetization_config
block supports:
enabled
-
(Optional)
Flag that specifies whether the Advanced API Ops add-on is enabled.The api_security_config
block supports:
enabled
-
(Optional)
Flag that specifies whether the Advanced API Ops add-on is enabled.
expires_at
-
(Output)
Flag that specifies whether the Advanced API Ops add-on is enabled.
The connectors_platform_config
block supports:
enabled
-
(Optional)
Flag that specifies whether the Advanced API Ops add-on is enabled.
expires_at
-
(Output)
Flag that specifies whether the Advanced API Ops add-on is enabled.
In addition to the arguments listed above, the following computed attributes are exported:
id
- an identifier for the resource with format organizations/{{org}}
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.AddonsConfig can be imported using any of these accepted formats:
organizations/{{name}}
{{name}}
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}}