I’m trying to update the memory of an existing cloud functions through the cli but instead of updating it creates a new function.
I’ve tried several commands from the docs but it still creates everytime.
gcloud functions deploy {func_name} --memory=512MB --gen2
gcloud functions deploy {func_name} --trigger-http --memory=512MB --gen2 --project={proj_name} --source=.
gcloud functions deploy {func_name} --memory=512MB --runtime nodejs18 --region {region_name} --gen2 --trigger-http
What is the proper syntax to update an existing cloud functions? I just want to update the memory.