hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.36k stars 1.75k forks source link

Add new Apigee API proxy (`google_apigee_api / _apiproxy`) resource #12264

Open bmanoj-aws opened 2 years ago

bmanoj-aws commented 2 years ago

Affected Resource(s)

Hi Team,

Trying to create apigee using cdktf but the document provided helps in creating only endpoints , environments, organizations and instance. cannot we create a API Proxy or is it still under development.

If i am missing the steps from the documentation on how to create the api proxy , please do let me know.

Also if possible can you share the sample snippet on how to create the api proxy from apigee if available that would be helpful.

Apigee CDKTF Doc Link i am referring to: Terraform Registry 1

Thanks


Link to API docs for the new resource : https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.apis

References

megan07 commented 2 years ago

Wanted to clarify, is this the resource you'd like added? https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.apis

CodyKurtz commented 1 year ago

Would love to see this. We are using many standard templates for deploying resources with Terraform. For proxy deployment, we must rely on the CLI or maven tools. This requires a custom pipeline.

I wouldn't also mind seeing something similar to this, from this open source Apigee provider. Just a method to create a proxy with a bundle, through a resource. https://registry.terraform.io/providers/scastria/apigee/latest/docs/resources/proxy

SarahFrench commented 1 year ago

I've updated the issue title so it's clearer that the issue is a request for a new resource (and doesn't require any knowledge about CDKTF).

Naming of this resource might need some thought. The API Proxy resource is called ApiProxy in the docs, but the API refers to the resource as just "api" (GET https://apigee.googleapis.com/v1/{name=organizations/*/apis/*}), so the name could be either google_apigee_apiproxy or google_apigee_api. I don't think it should be google_apigee_api_proxy as this implies that the proxy is a child resource of a parent api resource.

I'll triage this issue like a regular 'new resource' issue

zchenyu commented 1 year ago

Any update on this issue?

j-cavoizy commented 5 days ago

Any update on this new resource ? If I could add my 2 cents the best would be to have a google_apigee_api_deployment resource as well which could act likegoogle_apigee_api_sharedflow_deployment for google_apigee_api_sharedflow