Apigee Terraform Module

I want to create Apigee PAYG organization with external load balancer using terraform module. I found module https://github.com/apigee/terraform-modules and have few questions

  1. Is this right module to use to create PAYG organization?

  2. How can I specify Intermediate environment type in this terraform module https://cloud.google.com/apigee/docs/api-platform/reference/pay-as-you-go-environment-types

5 Likes

Hi @akash3664 ,

  1. Yes that would be the right modules to use with PAYG.
  2. Please note that the intermediate environment is created by default as indicated in the first paragraph of the page you sourced. You can take control of the environment with the [google_apigee_environment](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/apigee_environment) resource. Please review the [type](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/apigee_environment#type-1) attribute in particular. Also note that you may also need to configure extra nodes which can be accomplished with the [node_config](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/apigee_environment#node_config-1) block.

Hope this helps.

1 Like