google cloud-storage for existing appengine accounts - google-app-engine

i have existing appengine accounts that need to have cloud storage capability.
but it seems that i cant add it to an existing app engine account.
https://cloud.google.com/products/cloud-storage
instead i must create a new 'project' which creates a new appengine account.
is there a difference when having the cloud storage in a different 'project' beside having a different name?
thanks
-lp

i found the solution.
the appengine settings page has a button for enabling 'Cloud Integration'
Administration->application settings->cloud integration
click the button and an existing appengine project will become a cloud project and there is now a option in the cloud console to add the cloud storage.

Google Cloud Storage documentation is quite explicit about enabling GCS for existing AppEngine projects:
GCS Docs - enabling for old style AppEngine apps

Related

I cannot enable firestore on a project although I'm not using AppEngine nor Datastore

I'm trying to activate firestore on a project on which I'm not using AppEngine nor Datastore and having this error message.
Cannot enable Firestore for this project
Currently Firestore cannot be enabled in projects already using Cloud Datastore or App Engine
To be more precise, I used to use datastore but now there is no entities in my project datastore. So maybe there is something that I need to disable explicitly
Thx in advance for your help
Unfortunately since you have previously used Cloud Datastore in that project, you cannot create a Cloud Firestore instance. Our ability to switch it currently only works if it was never used in the past.
go to the Project Settings and add Default GCP resource location:
Then try to create database

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.

google cloud storage client library

How to enable default bucket for GCS library.
I cant below options in my project console.
If your app doesn't have a default bucket, create one:
In the Google Cloud Platform Console, go to the Application settings.
Scroll to the bottom of the page to Cloud Integration.
Click Create and wait for the bucket to be created. The bucket will be completely set up and ready for use.
Note: AM using Free account.
You need to enable billing in order to use Google Cloud Storage.
https://cloud.google.com/storage/docs/signup?hl=en
Note: For most projects, Google Cloud Storage is enabled by default. You will still need to enable billing before using Google Cloud Storage.

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.

Project created from App Engine Console comes with less features compared with project created from Cloud Console

When I create a new Application from App Engine Console https://appengine.google.com/,
the application also appears on Cloud Console https://cloud.google.com/console#c=l
However, clicking into the project shows that only these features are included:
App Engine
BigQuery
Cloud Datastore
Compared with Project created directly from Cloud Console:
App Engine
Compute Engine
Cloud Storage
BigQuery
APIs
Cloud Datastore
Cloud SQL
That leads to problem that App Engine project is missing access to many features and there seems no obvious way to add them back later.
Any idea what's wrong here?
1,This only implies that when you create an application from app engine console, it directly creates 3 types of projects: app engine app, datastore instance and big query(i think you need to enable the api first) with the same project id. This does not mean you cannot use the other features. It only means you need to separately enable them and give project ids.
2, If you create a project from cloud console, then it will automatically create projects under all the 7 different categories with the same project ID
Finally I found how to do this:
Go to https://appengine.google.com/
Open your app
Open Administration / Application Settings
Click the button in the "Cloud Integration" section

Resources