Skip to main content
Version: Early Access

Google Cloud Compute Plugin

The Digital.ai Deploy Google Cloud Compute plugin allows you to deploy the Digital.ai Deploy instance on the Google Cloud platform.

Prerequisites

  • Digital.ai Deploy 10.3 or later releases
  • Google Cloud Platform infrastructure

Build the Plugin

To build the plugin, run the following command:

./gradlew clean build

After the build is successful, a *.xldp file containing the plugin is generated under the build/distributions folder.

Installing the Plugin

To install the plugin on Digital.ai Deploy:

  1. Download the latest JAR file from the Distribution site.
  2. Copy the plugin file to XL_DEPLOY_SERVER/plugins/xld-official directory.
  3. Restart the Digital.ai Deploy server.

Using the Google Compute Plugin

Before using the Google Compute plugin, you must configure the plugin properties on Digital.ai Deploy interface:

  1. From Explorer, click Infrastructure > New > Directory > AccountCloud, and fill in the properties.
note

Alternatively, you can use the Import from JSON task from Monitoring > Deployment Tasks and configure google.AccountCloud.

  1. Click Monitoring > Deployment Tasks and select the Check Connection to validate the parameters.
  2. Right-click Environments > New > Environment and create an environment.
  3. In the Containers field, enter google.AccountCloud to add the container.

Upload Deployment Artifacts to Google Cloud Storage

You can upload files, folders, and archives to a Google Cloud Storage (GCS) bucket from your deployment package. This feature is similar to uploading content to an AWS S3 bucket.

This section explains the configuration properties required and demonstrates how sync behavior works during deployment updates.

File and Archive Upload Properties

The following configuration options are available:

  • Target File Name: Specify a different name for the uploaded file.
  • Target Path in Bucket: Define the destination path within the GCS bucket.
  • Predefined ACL: If your GCS bucket does not use Uniform Bucket-Level Access (UBLA), you can set a predefined access control list (ACL) here. If UBLA is enabled, this field is ignored.

Folder Upload Properties

Uploading folders includes some of the same options as file or archive upload, but excludes the Target File Name property. It introduces two additional properties: Sync Folder and Remove Deleted Files on Sync.

  • Sync Folder: If selected, the plugin synchronizes the folder by comparing the current contents in the deployment package with those in the GCS bucket. Only modified and new files are uploaded.

  • Remove Deleted Files on Sync: If selected, any files present in the GCS bucket but missing from the current deployment package are deleted during synchronization. If not selected, the plugin retains all existing files in the bucket, even if they are not part of the new deployment.

See Configuring Deployables Using Google Cloud Compute to learn more about deploying using GCP.

Generate IAM Token

The Digital.ai Google Cloud Compute plugin supports Generate IAM Token Configurations.

To Generate IAM Token:

  1. Click Explorer, hover over Configuration, Click Explorer action menu and select New > gcp > GenerateToken to create a new gcp.GenerateToken. image
  2. Fill in the required properties. image
  3. Click Save.
  4. Goto GenerateTokenSample and select Generate IAM Token to execute and populate the Token Value in the gcp.GenerateToken. image
  5. Click Execute to generate the Token. image
  6. Double Click GenerateTokenSample to view the generated Token in API Token field.
  7. Use the Token Value in Service Account Token Gcp Credentials ID field.
  8. In case the Generated Token needs to update credentials.gcp.ServiceAccountTokenGcpCredentials apiToken field, specify the Service Account Token GCP Credential ID to update apiToken field on Token Generation. image

Scheduling Generation of IAM Token

To Schedule the Generation of IAM Token:

  1. Hover over Configuration Click Explorer action menu and select New > schedule > ControlTaskJob to create a new schedule.ControlTaskJob. image
  2. Enter the Configuration item Id of the Api token Generation in the Configuration item Id field and the generateToken in the Control Task name field. image
  3. Click Save.
  4. The ApiToken Generates automatically as per the Crontab schedule.