add tests and update readme for apigee psc peering

This commit is contained in:
g-greatdevaks
2023-09-07 16:42:28 +05:30
parent 34b37a0dc2
commit b98537689c
14 changed files with 256 additions and 10 deletions

View File

@@ -13,7 +13,8 @@ This module simplifies the creation of a Apigee resources (organization, environ
- [All resources (HYBRID control plane)](#all-resources-hybrid-control-plane)
- [New environment group](#new-environment-group)
- [New environment](#new-environment)
- [New instance](#new-instance)
- [New instance (VPC Peering Provisioning Mode)](#new-instance-vpc-peering-provisioning-mode)
- [New instance (Non VPC Peering Provisioning Mode)](#new-instance-non-vpc-peering-provisioning-mode)
- [New endpoint attachment](#new-endpoint-attachment)
- [Apigee add-ons](#apigee-add-ons)
- [Variables](#variables)
@@ -242,7 +243,7 @@ module "apigee" {
# tftest modules=1 resources=1
```
### New instance
### New instance (VPC Peering Provisioning Mode)
```hcl
module "apigee" {
@@ -258,6 +259,28 @@ module "apigee" {
# tftest modules=1 resources=1
```
### New instance (Non VPC Peering Provisioning Mode)
```hcl
module "apigee" {
source = "./fabric/modules/apigee"
project_id = "my-project"
organization = {
display_name = "My Organization"
description = "My Organization"
runtime_type = "CLOUD"
billing_type = "Pay-as-you-go"
database_encryption_key = "123456789"
analytics_region = "europe-west1"
disable_vpc_peering = true
}
instances = {
europe-west1 = {}
}
}
# tftest modules=1 resources=2
```
### New endpoint attachment
Endpoint attachments allow to implement [Apigee southbound network patterns](https://cloud.google.com/apigee/docs/api-platform/architecture/southbound-networking-patterns-endpoints#create-the-psc-attachments).