Questions tagged [spring-cloud-gcp]

Ask questions about the Spring Cloud GCP project.

Integrations between Google Cloud Platform APIs and Spring.

The Spring Cloud GCP project makes the Spring Framework a first-class citizen of Google Cloud Platform (GCP).

Spring Cloud GCP lets you leverage the power and simplicity of the Spring Framework to:

  • Publish and subscribe to Google Cloud Pub/Sub topics

  • Configure Spring JDBC with a few properties to use Google Cloud SQL

  • Map objects, relationships, and collections with Spring Data Cloud Spanner and Spring Data Cloud Datastore

  • Write and read from Spring Resources backed up by Google Cloud Storage

  • Exchange messages with Spring Integration using Google Cloud Pub/Sub on the background

  • Trace the execution of your app with Spring Cloud Sleuth and Google Stackdriver Trace

  • Configure your app with Spring Cloud Config, backed up by the Google Runtime Configuration API

  • Consume and produce Google Cloud Storage data via Spring Integration GCS Channel Adapters

  • Use Spring Security via Google Cloud IAP

  • Analyze your images for text, objects, and other content with Google Cloud Vision

147 questions
0
votes
1 answer

GCP - Scale GKE pods based on custom logging metric using HPA

I want to use the Custom log metrics on GKE HPA. Metrics are able to view on metrics explorer but unable to use it on HPA . We have installed Custom metrics adapter and We are able to use other custom metrics like…
0
votes
1 answer

In Appengine of GCP, how can we ensure that using Java code in appengine , it doesn't give 500 error when the app engine is getting startup?

The issue is that we wanted our appengine built on springboot java to autoscale when the request load increases without any downtime but the problem is that the appengine server takes more than 60 seconds to startup because of Springboot java & as…
0
votes
1 answer

What settings required to retry message to from GCP pub/sub in java

I am new to GCP pub/sub and trying to resend a message which is not acknowledged (ack/nack). In subscription at GCP console dashboard, I have mentioned: In my java code, I have created a subscriber public Subscriber createSubscriber(String…
Rishabh Jain
  • 113
  • 1
  • 14
0
votes
0 answers

I am unabled to connect to Google Datastore from a service in App Engine with Spring Boot

I have an application runing in App engine Standar Environment done in java and accessing to the datastore with datanucleus. It is working fine and, as it is running inside the Standard Environment, it connects to datastore perfecly. Now, I am…
0
votes
0 answers

Google cloud KMS permission issue when using Spring Cloud GCP Core to import credentials

I followed the Spring Cloud GCP documentation to import credentials with spring.cloud.gcp.credentials.encoded-key and I tried to call KeyManagementServiceClient.asymmetricSign to sign some data but there's an error that…
0
votes
2 answers

Application failed to start when deploying to GKE, showing 'GcpContextAutoConfiguration' was excluded

I have an application, when I deployed to GCP, it failed to start but it was running all good in my local with docker. I have no idea how to resolve this, do I need to include anything in my properties file? *************************** APPLICATION…
0
votes
1 answer

Query by Interleaved table fields using Spring Data Spanner

I'm trying to query by a field of a Interleaved table using Spring Data Spanner. The id comparison is automatically done by Spring Data Spanner when it does the ARRAY STRUCT inner join, but I'm not being able to add a WHERE clause to the Interleaved…
0
votes
0 answers

Exception in GCP while calling REST APIs

I am new to GCP and deployed one of the sample spring boot app with mysql db connection. while calling a rest APIs getting below exception. What could be the reason for the…
Mr bond
  • 133
  • 2
  • 13
0
votes
0 answers

Spring cloud GCP com.google.cloud.storage.StorageException access_token not found error

Spring boot-2.3.10, Spring Cloud Gcp: 1.2.8 I'm trying to access specific image pattern **(/resources/images/specific_folder/****) from GC Storage. For that I wrote the resource handler as shown below: @Override public void…
Sameer Malhotra
  • 424
  • 3
  • 12
  • 29
0
votes
0 answers

Decorate gcp-pubsub stream data

we are using GCP PubSub extensively, using the functional binder approach from spring cloud steam: com.google.cloud spring-cloud-gcp-pubsub-stream-binder
Damo
  • 1,449
  • 3
  • 16
  • 29
0
votes
1 answer

Configuring spring cloud sleuth and logback to log baggage fields

Following the spring cloud sleuth documentation, I've configured an app properties with the following: spring.sleuth.baggage.remote-fields=x-header-to-log spring.sleuth.baggage.correlation-fields=x-header-to-log I've then added a…
0
votes
1 answer

Terraform script for getting IP addresses for all GCP projects in my organisation

I want to scan all the IP addresses on my organization's GCP account and feed it to a file every week or so. How do I write a Terraform script/code to pull those data from GCP and then send it to the Qualys API for scanning?
0
votes
1 answer

Filtering information in Google Cloud Traces from different gke clusters in same GCP project

I have one GCP project in which there are two GKE clusters, one for development and preproduction workloads and another one for production. I am using Google Cloud Trace to correlate the information of the different Spring Boot microservice…
0
votes
1 answer

Spring Boot + gcp datastore + datastore emulator gets INVALID_ARGUMENT Encountered "OR" / "IN"

I have an application running in the App Engine Standar Environment using the Google Cloud Tools and the Datanucleus framework to access the data. When I run this application in the local environment it works fine and, when I make a Select with an…
0
votes
0 answers

Spring Boot and GCP: No qualifying bean of type org.springframework.cloud.gcp.secretmanager.SecretManagerTemplate

Getting error while connecting to GCP to get the secret from the secret manager, but somehow it's not working for me. Getting error while running the application as: No qualifying bean of type…