scastria / terraform-provider-apigee

Mozilla Public License 2.0
20 stars 17 forks source link

Adding operation type support - to include "remoteservice" #63

Closed gautambaghel closed 1 year ago

gautambaghel commented 1 year ago
resource "apigee_product" "apigee_product" {
  name               = "httpbin"
  display_name  = "httpbin"
  auto_approval_type = true
  description        = "A httpbin product"
  environments = [
    "test"
  ]
  attributes = {
    access = "public"
  }
  operation {
    api_source = "httpbin.default.svc.cluster.local"
    path       = "/"
    methods    = ["GET", "PATCH", "POST", "PUT", "DELETE", "HEAD", "CONNECT", "OPTIONS", "TRACE"]
  }
  operation_config_type = "remoteservice" # New setting -- completely optional, defaults to proxy
}

This is very useful for working with the remote service envoy plugin with Apigee

Testing

I've tested it with setting the operation_config_type variable as follows

@ev-the-dev -- Would love a review from you, thanks!

ev-the-dev commented 1 year ago

@gautambaghel Hey man, sorry for the late response. I'm taking a look at it now!

gautambaghel commented 1 year ago

Thanks, @ev-the-dev -- feel free to merge!