google-cloud-platform

Unable to build “Bookshelf app for Java on App Engine standard environment” example from google, issue with pom.xml?

半城伤御伤魂 提交于 2021-01-29 06:55:47
问题 I am trying to get the bookshelf app for Java on APP engine "https://cloud.google.com/java/getting-started-appengine-standard/tutorial-app" I have performed all the steps like setting up billing for my project, enabling APIs and downloading the SDK. I have cloned the repo i.e. git clone https://github.com/GoogleCloudPlatform/getting-started-java.git Then i proceed to run mvn -Plocal clean appengine:devserver from the directory getting-started-java/bookshelf-standard/2-structured-data This is

Unable to build “Bookshelf app for Java on App Engine standard environment” example from google, issue with pom.xml?

一曲冷凌霜 提交于 2021-01-29 06:53:05
问题 I am trying to get the bookshelf app for Java on APP engine "https://cloud.google.com/java/getting-started-appengine-standard/tutorial-app" I have performed all the steps like setting up billing for my project, enabling APIs and downloading the SDK. I have cloned the repo i.e. git clone https://github.com/GoogleCloudPlatform/getting-started-java.git Then i proceed to run mvn -Plocal clean appengine:devserver from the directory getting-started-java/bookshelf-standard/2-structured-data This is

Using gcloud cli within a cloud function

纵然是瞬间 提交于 2021-01-29 06:21:04
问题 There are great but still limited set of SDK access to GCP APIs within cloud function SDKs. e.g. Node. I want to call gcloud cli within a cloud function. Is this possible? e.g. gcloud sql instances patch my-database --activation-policy=NEVER The goal is nightly shutdown of an SQL instance 回答1: I believe you should use the Cloud SQL Admin API. If you're using the Python runtime for example you'd had 'google-api-python-client==1.7.8' (for example) to your requirements file and on the respective

Mysterious metrics in GCP Compute Engine API when the account does not use GCP compute

六月ゝ 毕业季﹏ 提交于 2021-01-29 06:05:27
问题 I have GCP account which I am using only Datastore in Native mode (Firestore), and Firebase Hosting/Auth. In this account, I am seeing a lot of compute related metrics getting generated from my dashboard as shown below. I have 0 ec2 compute vm instances running & no Kubernetes cluster running in the account. Is it common to have these metrics generated in GCP even when you are not using anything in compute ? If I do not get charged for these requests, I am guess I can ignore them... but I am

How do i automate my jupyter notebook using google cloud?

孤者浪人 提交于 2021-01-29 05:54:16
问题 I have a code with Jupyter notebook and i would like to schedule daily running by Google Cloud. I already created VM instance and running my code there, but I couldn't find any guide or video how to implement daily running. So, how can I do that? 回答1: Google is offering a product which is called AI Platform Notebooks. It is implementing lots of useful stuff like lots of open-source frameworks, CI etc. There is also a blog post by the Google Cloud that explains the product in depth and can be

GCP Cloud Scheduler job for App Engine HTTP target is timing out after 10 minutes

旧巷老猫 提交于 2021-01-29 05:50:42
问题 I have an App Engine app and I had some App Engine cron jobs in it which was taking longer than 10minutes and hence failing(due to the limitation of App Engine cron job max time being 10min). I decided to move it to Cloud Scheduler and created a job with App Engine HTTP target with below parameters. (attempt-deadline is the parameter where I tried to increase the time) gcloud beta scheduler jobs create app-engine daily-import --schedule="0 */3 * * 1" --attempt-deadline=21600s --version="test

gcloud console can't view gke resources

感情迁移 提交于 2021-01-29 05:49:33
问题 I'm testing permissions on GCP on new project, I've created a user and gave basic storage.objects.get and storage.objects.list permissions and all work, but when I moved to GKE it stopped no matter how many permissions ( container.clusters.* or container.pods.* or the role Kubernetes Engine Cluster Viewer he can't view the resources with the error message Can't access project settings for project <my_project> on service container.googleapis.com [view=CONSUMER_VIEW]. any thoughts what might be

GCP Cloud Scheduler job for App Engine HTTP target is timing out after 10 minutes

此生再无相见时 提交于 2021-01-29 05:48:11
问题 I have an App Engine app and I had some App Engine cron jobs in it which was taking longer than 10minutes and hence failing(due to the limitation of App Engine cron job max time being 10min). I decided to move it to Cloud Scheduler and created a job with App Engine HTTP target with below parameters. (attempt-deadline is the parameter where I tried to increase the time) gcloud beta scheduler jobs create app-engine daily-import --schedule="0 */3 * * 1" --attempt-deadline=21600s --version="test

Is it possible to obtain instance metadata for GCP on Google Collaboratory?

风格不统一 提交于 2021-01-29 05:36:13
问题 I'm trying to obtain instance metadata on Google Collaboratory. I'm interested in finding out the compute region. Specifically, on the hosted runtime on Google Collaboratory, I tried running the following commands but they time out. !curl "http://metadata.google.internal/computeMetadata/v1/?recursive=true&alt=json" -H "Metadata-Flavor: Google" curl: (7) Failed to connect to metadata.google.internal port 80: Connection timed out !curl "http://169.254.169.254/computeMetadata/v1/instance/

Cloud build service account permission to build

若如初见. 提交于 2021-01-29 04:32:01
问题 I have my env set as Cloud build app (Github app) to provision terraform through cloud build to Google Cloud Platform. The build is a simple cloud composer with cloud functions, that creates these resources along with the right service accounts and members. However, only the owner permission can execute this successfully, I want to have least privilege for the cloud build service account. I have used a lot of roles and nothing seems to be successful. i.e. create service account, editor,