Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create serverless neg for API-gateway #10476

Closed
ricardolpd opened this issue Nov 2, 2021 · 7 comments
Closed

How to create serverless neg for API-gateway #10476

ricardolpd opened this issue Nov 2, 2021 · 7 comments
Labels

Comments

@ricardolpd
Copy link

I am trying to configure an load balancer for API-gateway

The goal for us is to to aggregate over different url paths, different gateways, and for this I am trying to follow this tutorial

in which i have to create the equivalent serveless-neg of the following command, but i can't find an example for this in this page compute_region_network_endpoint_group

gcloud compute network-endpoint-groups create api-gateway-serverless-neg
   --region=us-central1 \
   --network-endpoint-type=serverless \
   --serverless-deployment-platform=apigateway.googleapis.com \
   --serverless-deployment-resource=my-gateway

Is the above not currently supported? If not when will it be added, is there another work around to use api-gateway with load balancer and terraform?

I would appreciate any help with this.

@beninada
Copy link

beninada commented Nov 3, 2021

Seeing the same issue here too. Running the command via CLI returns:

ERROR: (gcloud.compute.network-endpoint-groups.create) unrecognized arguments:
  --serverless-deployment-platform=apigateway.googleapis.com
  --serverless-deployment-resource=...

@beninada
Copy link

beninada commented Nov 8, 2021

Using gcloud beta resolved this for me.

@ricardolpd
Copy link
Author

Sorry i was busy with other work, its good that you managed to get it working, but my question was more of how do I achieve the equivalent of the gcloud command with terraform. I can seem to find a serverless neg for the api-gateway within the terraform modules.

@ivoilic
Copy link

ivoilic commented Nov 29, 2021

@ricardolpd as you may have guessed, this feature is not available yet.
There have been multiple requests for this to be added: #10061 #9907
GoogleCloudPlatform/magic-modules#5434
Hopefully one of these will be implemented soon.

@ivoilic
Copy link

ivoilic commented Jan 10, 2022

@ricardolpd Since the PR for this is taking some time to get merged, one alternative is to use the gcloud command within terraform directly.

@roaks3
Copy link
Collaborator

roaks3 commented Sep 28, 2022

Per #10729, this is now implemented in the beta provider.

@roaks3 roaks3 closed this as completed Sep 28, 2022
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants