This example demonstrates how Kogito Serverless Workflow can be used to manage resources in GCP cloud. More specifically, this project contains a series of workflows that manage Service Account and Compute Instance.
- Java 11
- Maven
- Install the Google Cloud CLI
- Create a GCP project
Generate a new token to interact with GCP REST API
gcloud auth application-default print-access-tokenBefore executing the example, make sure you enable Compute Instance API in your GCP project.
Add token values to application.properties, as well as the GCP project ID, Zone and Region where you would like the resources to be created.
Execute the example tests using
mvn clean installFollow the log and check your GCP project, where a new service account named kogito-sw-gcp and compute instance named kogito-sw-gcp will be created and deleted.