I'm trying to set up API Gateway to work with a GCP Function that I have running.
I previously created a config using the following code in terminal:
gcloud api-gateway api-configs create apigateway-gcpfunction-config \
--api=my-api --openapi-spec=apigateway_gcpfunction_config.yaml \
--project=my-project --backend-auth-service-account=my-service-account@blah.com
This works correctly, and when I view my config using the following code I get a notification that it's active:
gcloud api-gateway api-configs describe apigateway-gcpfunction-config --api=my-api --project=my-project
However now I'm trying to update my config file because I needed to change the path for my GCP Function, but I can't find anything in the documentation for how to update the code.
I see in this article detailing updating api-configs that it's possible to update various attributes of a config, but I can't figure out how to update the code itself? Is this impossible? Should I just create a new config every time and relaunch a new gateway with a new config every time there's an update to the config file????