# Google Apigee X Instance Module This module allows managing a single Apigee X instance and its environment attachments. ## Examples ### Apigee X Evaluation Instance ```hcl module "apigee-x-instance" { source = "./modules/apigee-x-instance" name = "my-us-instance" region = "us-central1" cidr_mask = 22 apigee_org_id = "my-project" apigee_environments = [ "eval1", "eval2" ] } # tftest modules=1 resources=3 ``` ### Apigee X Paid Instance ```hcl module "apigee-x-instance" { source = "./modules/apigee-x-instance" name = "my-us-instance" region = "us-central1" cidr_mask = 16 disk_encryption_key = "my-disk-key" apigee_org_id = "my-project" apigee_environments = [ "dev1", "dev2", "test1", "test2" ] } # tftest modules=1 resources=5 ``` ## Variables | name | description | type | required | default | |---|---|:---:|:---:|:---:| | [apigee_org_id](variables.tf#L32) | Apigee Organization ID. | string | ✓ | | | [cidr_mask](variables.tf#L37) | CIDR mask for the Apigee instance. | number | ✓ | | | [name](variables.tf#L52) | Apigee instance name. | string | ✓ | | | [region](variables.tf#L57) | Compute region. | string | ✓ | | | [apigee_envgroups](variables.tf#L17) | Apigee Environment Groups. | map(object({…})) | | {} | | [apigee_environments](variables.tf#L26) | Apigee Environment Names. | list(string) | | [] | | [disk_encryption_key](variables.tf#L46) | Customer Managed Encryption Key (CMEK) self link (e.g. `projects/foo/locations/us/keyRings/bar/cryptoKeys/baz`) used for disk and volume encryption (required for PAID Apigee Orgs only). | string | | null | ## Outputs | name | description | sensitive | |---|---|:---:| | [endpoint](outputs.tf#L17) | Internal endpoint of the Apigee instance. | | | [id](outputs.tf#L22) | Apigee instance ID. | | | [instance](outputs.tf#L27) | Apigee instance. | | | [port](outputs.tf#L32) | Port number of the internal endpoint of the Apigee instance. | |