2021-08-05 02:57:22 -07:00
|
|
|
# Google Apigee Organization Module
|
2021-08-04 08:09:44 -07:00
|
|
|
|
2021-08-05 02:57:22 -07:00
|
|
|
This module allows managing a single Apigee organization and its environments and environmentgroups.
|
2021-08-04 08:09:44 -07:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
### Apigee X Evaluation Organization
|
|
|
|
|
|
|
|
```hcl
|
2021-08-05 04:21:57 -07:00
|
|
|
module "apigee-organization" {
|
|
|
|
source = "./modules/apigee-organization"
|
2021-08-04 08:09:44 -07:00
|
|
|
project_id = "my-project"
|
|
|
|
analytics_region = "us-central1"
|
|
|
|
runtime_type = "CLOUD"
|
2021-08-05 02:57:22 -07:00
|
|
|
authorized_network = "my-vpc"
|
2021-08-04 08:09:44 -07:00
|
|
|
apigee_environments = [
|
|
|
|
"eval1",
|
|
|
|
"eval2"
|
|
|
|
]
|
|
|
|
apigee_envgroups = {
|
|
|
|
eval = {
|
|
|
|
environments = [
|
|
|
|
"eval1",
|
|
|
|
"eval2"
|
|
|
|
]
|
|
|
|
hostnames = [
|
|
|
|
"eval.api.example.com"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-08-05 02:57:22 -07:00
|
|
|
# tftest:modules=1:resources=6
|
2021-08-04 08:09:44 -07:00
|
|
|
```
|
|
|
|
|
2021-08-05 04:21:57 -07:00
|
|
|
### Apigee X Paid Organization
|
|
|
|
|
|
|
|
```hcl
|
|
|
|
module "apigee-organization" {
|
|
|
|
source = "./modules/apigee-organization"
|
|
|
|
project_id = "my-project"
|
|
|
|
analytics_region = "us-central1"
|
|
|
|
runtime_type = "CLOUD"
|
|
|
|
authorized_network = "my-vpc"
|
|
|
|
database_encryption_key = "my-data-key"
|
|
|
|
apigee_environments = [
|
|
|
|
"dev1",
|
|
|
|
"dev2",
|
|
|
|
"test1",
|
|
|
|
"test2"
|
|
|
|
]
|
|
|
|
apigee_envgroups = {
|
|
|
|
dev = {
|
|
|
|
environments = [
|
|
|
|
"dev1",
|
|
|
|
"dev2"
|
|
|
|
]
|
|
|
|
hostnames = [
|
|
|
|
"dev.api.example.com"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
test = {
|
|
|
|
environments = [
|
|
|
|
"test1",
|
|
|
|
"test2"
|
|
|
|
]
|
|
|
|
hostnames = [
|
|
|
|
"test.api.example.com"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# tftest:modules=1:resources=11
|
|
|
|
```
|
|
|
|
|
|
|
|
### Apigee hybrid Organization
|
2021-08-04 08:09:44 -07:00
|
|
|
|
|
|
|
```hcl
|
2021-08-05 04:21:57 -07:00
|
|
|
module "apigee-organization" {
|
|
|
|
source = "./modules/apigee-organization"
|
2021-08-04 08:09:44 -07:00
|
|
|
project_id = "my-project"
|
|
|
|
analytics_region = "us-central1"
|
|
|
|
runtime_type = "HYBRID"
|
|
|
|
apigee_environments = [
|
|
|
|
"eval1",
|
|
|
|
"eval2"
|
|
|
|
]
|
|
|
|
apigee_envgroups = {
|
|
|
|
eval = {
|
|
|
|
environments = [
|
|
|
|
"eval1",
|
|
|
|
"eval2"
|
|
|
|
]
|
|
|
|
hostnames = [
|
|
|
|
"eval.api.example.com"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# tftest:modules=1:resources=6
|
|
|
|
```
|
|
|
|
|
|
|
|
<!-- BEGIN TFDOC -->
|
|
|
|
<!-- END TFDOC -->
|