-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add ability to upload from local directory for cloud functions #3085
Comments
I'm not seeing any functionality for direct upload in the API. The closest I see is https://cloud.google.com/functions/docs/reference/rest/v1/projects.locations.functions/generateUploadUrl, which just uploads to cloud storage and then you use that URL as the upload URL when creating the function. Can you link me to documentation for what you're describing, or can you describe what this would enable that you cannot currently do? |
I currently do it via this quickstart
<https://cloud.google.com/functions/docs/quickstart#deploy_a_function>, you
just have to do it within the directory. It then supports local upload (and
will let you upload multiple files at once.)
…On Tue, Feb 19, 2019 at 6:20 PM Paddy ***@***.***> wrote:
I'm not seeing any functionality for direct upload in the API. The closest
I see is
https://cloud.google.com/functions/docs/reference/rest/v1/projects.locations.functions/generateUploadUrl,
which just uploads to cloud storage and then you use that URL as the upload
URL when creating the function.
Can you link me to documentation for what you're describing, or can you
describe what this would enable that you cannot currently do?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3085 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVfYL7meEqHCceBTst73RYO5JcvGHSObks5vPIa5gaJpZM4bD9ie>
.
--
*Kaitlin Ardiff*
[email protected]
Strategic Cloud Engineer
|
Can you run the relevant gcloud command and add |
@paddycarver
|
Signed-off-by: Modular Magician <[email protected]>
Signed-off-by: Modular Magician <[email protected]>
I've been using Terraform's hashicorp/terraform-provider-archive#40 is a related issue on the archive_file provider; a change there could also provide a solution. |
Any updates about this issue? I may try to fix it. |
No updates- as highlighted above, it's possible to perform this workflow already using Closing this issue out would mean an improvement to be able to do so entirely in band within the resource, which is not currently planned work for the provider development team. |
Note from triage: Moving this out of the backlog since it could be reasonable to implement if the product team determines it is a priority. |
Community Note
Description
Cloud Functions lets you deploy via local directory, but currently terraform only supports uploads from GCS or Cloud Source Repos
New or Affected Resource(s)
References
b/274818624
The text was updated successfully, but these errors were encountered: