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

Spring Cloud GCP Starter Authentication Issues

I am using spring-cloud-gcp-starter,spring-cloud-gcp-starter-pubsub,spring-cloud-gcp-starter-data-datastore for the autoconfiguration of my gcp dependencies. It fetches the key from system variable:: spring.cloud.gcp.credentials.encoded-key which I…
0
votes
0 answers

Use a file from GCP Secret Manager as Spring PropertySource

We use GCP Secret Manager and load a whole property file into a secret. Is it possible to use this file (in fact it's a string) as a PropertySource in Spring Boot so that we can access the single properties with @Value?
Simon Martinelli
  • 34,053
  • 5
  • 48
  • 82
0
votes
1 answer

How to programmatically authenticate Subscriber and pass in application credentials json for Spring Cloud

I have a Subscriber app in Java using spring-cloud-gcp-starter-pubsub, but I don't want to authenticate to Google Cloud using a JSON file on the filesystem; we are getting the file from a different secure location (not on disk) and want to…
cantara256
  • 83
  • 5
0
votes
1 answer

How to fix Non-resolvable import POM: com.google.cloud:spring-cloud-gcp-dependencies

Trying to build spring-cloud-gcp from https://github.com/GoogleCloudPlatform/spring-cloud-gcp Many failed compile/install attempts due to failed tests (unit and checkstyle) - decided to just disable and/or not fail due to tests - great, that…
0
votes
1 answer

Spring Cloud GCP Datastore - exclude field from being persisted

I'm using the spring-cloud-gcp-starter-data-datastore dependency in a spring boot application to interface with a Datastore instance in GCP. I have the following entity mapped out (condensed for brevity): @Entity(name = "order_status") public class…
0
votes
1 answer

GCP logging with json appender for sping boot app

I am trying adding gcp trace and logging to spring boot app but I get this error APPLICATION FAILED TO START Description: Parameter 1 of constructor in com.google.cloud.spring.logging.LoggingWebMvcConfigurer required a bean of type …
0
votes
1 answer

Creating BigQuery table column with BIGNUMERIC data type using Java

When creating BigQuery tables using the Java com.google.cloud:google-cloud-bigquery library, I don't see the BIGNUMERIC column data-type in the StandardSQLTypeName enumerations. I see NUMERIC but not BIGNUMERIC. How would I create a table with a…
0
votes
1 answer

Method threw 'com.google.cloud.storage.StorageException' exception on connection with GCS with JSON key

Getting Storage Exception while connection with GCS !! com.google.cloud google-cloud-storage 2.2.2
0
votes
2 answers

Spring Cloud PubSub as not shutdown properly error

I'm trying to implement Spring Cloud Pub/Sub, I followed the guide but how to take the exception low, this makes it start to consume a high level of processing, I researched a lot and they say to put the parameter awaitTerminated, but I couldn't…
0
votes
1 answer

Generic adapter pattern in spring-cloud that will allow you pub/sub to different messaging services

Is there a generic adapter pattern in spring-cloud that will allow you pub/sub a message? Basically allowing you to the change provider type to ampq, kafka, pubsub or jms. Business case is being able to change a pub/sub messaging service, avoiding…
0
votes
2 answers

Differentiate between spring cloud gcp pub sub and google cloud pub sub

If I want to send message to Google PubSub and consume message from it.Would you recommend using Spring cloud GCP library or just using Google Cloud Java API. Can anyone differentiate between these two or what are features spring cloud gcp provide…
0
votes
1 answer

@WebFluxTest throws org.springframework.boot.context.properties.bind.Binder has not been registered error on Jenkins pipeline

I've built a Spring WebFlux application (Annotated Controller model) that integrates with Google Cloud Services with the below mentioned library versions. I've written a test for Controller class and when it is run on my local machine it runs…
0
votes
1 answer

Is There a Way to Get Spring Cloud Dataflow Server and Skipper Working with GCP Cloud SQL (MySQL or Postgresql)

I'm currently using helm charts from bitnami (Here) and trying to use a Cloud SQL instance in GCP. No matter what connection string I build, I get various connection errors connecting to the database. This causes the initial pod startup to fail,…
0
votes
1 answer

Alternate way of providing Credentials to Spring Cloud GCP

I am trying to use the Spring Cloud GCP. I want to know how to programmatically load GCP credentials rather than loading the GCP credentials from a json file using spring.cloud.gcp.credentials.location . Does creating a bean of type…
YCN
  • 667
  • 2
  • 9
  • 25
0
votes
1 answer

Why is Spring-Cloud-GCP no longer part of the Spring Cloud release train?

Why is Spring-Cloud-GCP no longer part of the Spring Cloud release train while the AWS one is?