Google Cloud App Engine download object from Google Cloud Storage issue - google-app-engine

I am hosting a CodeIgniter based PHP web application on Google App Engine flex environment.
I am able to allow the user to upload data like images, video to my Google Cloud Storage bucket. But what I need to do is when the image or video gets uploaded to the storage, at that same time the same object should be downloaded on Google App Engine server's source code.
i.e. There should be a copy of the uploaded image on my current App Engine source code server (App Engine current instance).

Related

Mount Google Cloud Storage in a Custom Flex GAE

I have a web application in a Custom Runtime Flex App Engine, which is deploy from a docker image, working fine.
This app is connected to a db in Google Cloud SQL to data persistence.
Now I trying to persist file data in a Cloud Storage Bucket, but I do not have found the way to mount this storage like a file system.
Gcsfuse does not work in this case due to privileges are required to tun docker.
In the app.yaml you can specify a volume, but not associate to storage.
How can persist file data with cloud storage in a Custom Flex GAE app?

How to link/connect Firebase and Google App Engine for image resizing

I'm using Firebase and I'm trying to leverage the image resizing service that AppEngine has with get_serving_url(). https://medium.com/google-cloud/uploading-resizing-and-serving-images-with-google-cloud-platform-ca9631a2c556.
I'm confused about how to go about linking my google app engine image resizing service to my firebase cloud storage instance.
I see this quote in the documentation https://firebase.google.com/docs/storage/gcp-integration
The Firebase SDKs for Cloud Storage use the Google App Engine default
bucket, which means that if you build an App Engine app, you can use
the built in App Engine APIs to share data between Firebase and App
Engine. This is useful for performing audio encoding, video
transcoding, and image transformations, as well as other computation
intensive background processing.
How can I point to this Google App Engine default bucket? I don't see it in the google app engine dashboard interface anywhere.
I've already set up a firebase project and I then created an app engine project - but I don't see any way to point my app engine to the default bucket that firebase created. Is that based on some sort of account id? Where in the admin interface or tools can I set up that linkage so that the files I'm uploading to the firebase default storage bucket are available to be resized by the app engine image server?
It doesn't seem to be possible to link existing firebase projects with an existing google cloud platform (GCP) / app engine project.
First create the GCP app engine project
Then, on firebase, go to Add Project -> Open the "Project name" drop-down and select the existing GCP project.
The firebase project ID will then be the same as the GCP project ID, the GCP default bucket gs://<project_id>.appspot.com is the default firebase storage bucket, and you can select additional GCP buckets on the firebase storage page.
If you have an existing Firebase project, then the corresponding Google Cloud project is created for you automatically.
Just go to Google Cloud console (https://console.cloud.google.com) and there you'll be able to select the project with the same name (as your Firebase project's). If you deploy your GAE app to that project then it should be able to access your data.

how to download data from the web and move them directly into google cloud storage

I want to download data from an authorized web portal and store them in google data storage. Certainly I can download them to my desktop and then upload them to the data storage using gsutil. I wonder if it is possible to directly download and upload the data (between the webportal and google cloud storage) without going through my desktop. With that I think I can schedule such task regularly with google cronjob.

Upload Local Datastore with Application

I'm using the Eclipse Plugin for App Engine, and I have my application running fine locally (able to read/write to the local Cloud Datastore).
However when I deployed to App Engine, the server copy does not seem to have any Cloud Datastore information. Do I need to upload this separately, and if so how do I do this?

Missing Cloud Storage Feature in Project

I have an existing project in Google Clouds that only showing this 3 features: App Engine, BigQuery, and Cloud Datastore. The project is not accessible from Google APIs Console (not showing in the dropdown). How can I add Google Cloud Storage to this project?
*If I create a new project now in either Google Clouds or Google APIs, it will come with App Engine, Compute Engine, Cloud Storage, BigQuery, APIs, Cloud Datastore, and Cloud SQL. But I want to use back my existing project because it has whitelisted to use gaeforphp.
Thanks.
App Engine projects created in the past may not be connected to the rest of the Google Cloud APIs. You can enable this by:
visiting: https://appengine.google.com/
Choose Application Settings from the administration section on the left.
Scroll to the very bottom, the Cloud Integration section.
Click the add project button.

Resources