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
39
votes
4 answers

What's the difference between Google Cloud Spanner and Cloud SQL?

I am novice in GCP stack so I am so confused about amount GCP technologies for storing data: https://cloud.google.com/products/storage Although google cloud spanner is not mentioned in the article above I know that it is exist and iti is used for…
8
votes
2 answers

How to subscribe to multiple Google PubSub Projects in Spring GCP?

I want to subscribe to multiple Google Cloud PubSub projects in a Spring Boot application. After reading the related questions in How to wire/configure two pubsub gcp projects in one spring boot application with spring cloud?, How to use Spring…
8
votes
2 answers

Message is received from Google Pub/Sub subscription again and again after acknowledge[Heisenbug]

I would like to notice that the scenarion I will describe happen rare enough and in most cases everything works as expected. I have 1 topic and 1 subscription on Pub/Sub side. My java application listens for subscription, does some processing and…
4
votes
1 answer

java.lang.IllegalArgumentException: The project ID can't be null or empty

I installed the PubSub dependency in my project. com.google.cloud spring-cloud-gcp-starter-pubsub I implemented a TopicChannel and SubscriptionChannel: …
4
votes
0 answers

How to listen files from GCS ? is it possible to leverage GcsInboundFileSynchronizer and GcsStreamingMessageSource in multi-node applications?

I am reading spring cloud gcp storage documentation and there written that I can listen for a new files using GcsInboundFileSynchronizer or GcsStreamingMessageSource just configuring spring bean like this: @Bean @InboundChannelAdapter(channel =…
3
votes
2 answers

How to connect Camel google-pubsub-component to Pubsub emulator?

I have been trying for hours unsuccessfully to get my Spring Boot application's Camel routes (via the Camel component camel-google-pubsub to connect to a local instance of Google Pubsub Emulator. My emulator is running : ❯ gcloud beta emulators…
3
votes
1 answer

How to fetch documents from subcollection in firestore using spring data

How to fetch documents from subcollection using spring FirestoreReactiveRepository? Ask is: how subcollection name or path can be given dynamically to @Document annotation? My firestore collection: (cities is first level collection and apartments is…
3
votes
1 answer

How to fetch GCP billing by instance name? (Not by type) and is there any association between resource and billing sku id?

Can I see GCP billing by instance name? (Not by type) I am trying to filter GCP billing by instance name, is it possible? I only succeeded to filter by GCP Compute Engine and instance type (n1-standard) etc... I am trying to programmatically match…
3
votes
2 answers

GCP and Spring logback. Severity is always info

When logging errors to stackdriver, every message is logged as INFO, even when using log.error or log.warn, etc., but the payload is correct. I'd like to be able to filter by severity and get email on error. I'm using Spring Boot and Logback. The…
2
votes
1 answer

Is Google Spring Cloud GCP compatible with spring boot 3.0.0?

I'm using Google Spring Cloud GCP and getting errors since trying to upgrade spring boot 2.x.x to 3.x.x Description: Parameter 2 of constructor in x.MyService required a bean of…
D M
  • 33
  • 3
2
votes
1 answer

Unable to list the Container images in Cloud Run deployment

I have IAM roles like Editor/Cloud Run Admin in my gcp projects (multiple Projects) I am facing this issue, When I am trying to deploy the container image from Cloud Run's "Edit & Deploy New Revision" screen. It's not listing the Images in the…
2
votes
4 answers

Provider "gs" not installed

i've found two similar posts here but one hasn't been answered and the other was about android. I have a spring boot project and I want to access GCP Storage files within my application. Locally everything works fine I can access my bucket and read…
tagtraeumer
  • 1,451
  • 11
  • 19
2
votes
2 answers

Logs not showing in Google Cloud Logging UI

I'm trying to set up sending my application logs to Google Cloud Logging, but no matter what I try, the logs are not visible in the Log Viewer. I tried: using the Java Logging Logback appender directly, following all of the steps in the…
2
votes
2 answers

Unable to connect Spring boot Mysql to GCP cloud

I created SQL instance in GCP cloud account and it is working fine if i run in local. But it is throwing error after deploying Spring app to GCP. Error: org.springframework.beans.factory.BeanCreationException: Error creating bean with name…
2
votes
0 answers

Spring boot application startup hangs on line "started bean '_org.springframework.integration.errorLogger'"

I've decided spring cloud config + spring cloud bus. So I've implemented config server first: full code base could be found here: https://github.com/gredwhite/config-server-demo But when I try to start it locally am not able to start the…
1
2 3
9 10