Skip to main content
Version: Early Access

Configuring Deployables Using Google Cloud Compute Plugin

This topic covers the Deploy Google Cloud Compute plugin, which supports Deploy Instance Spec, Deploy Template Spec, and DialogFlow Agent Zip Spec deployables.

Prerequisites

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

Step 1: Create google.AccountCloud Infrastructure

To create google.AccountCloud in Infrastructure:

  1. Log in to Digital.ai Deploy.
  2. Click Explorer, hover over Infrastructure, click Menu button, and select New > google > AccountCloud to create google.AccountCloud.

Configure Instance Spec

  1. Enter the details in Project Id, Clent Email, and Private Key fields.

Configure Instance Spec

  1. Click Save.
note

Make sure to check the connection is successful.

Configure Instance Spec

Step 2: Set up google.AccountCloud Enviornment

  1. Create environment for google.AccountCloud. See See create an environment to know more information.

  2. Select the container from drop down list.

Configure Instance Spec

  1. Click Save

Step 3: Create and Deploy Application

Create and deploy provisioning package for Instance Spec, Template Spec and DialogFlow Agent ZIP Spec:

Step 3.1: Upload Deployment Artifacts to Google Cloud Storage

note

Ensure that the GCP plugin is installed and synchronized in your environment. For help, refer to Using the Plugins Manager.

  1. Click Explorer, hover over Applications, click Menu button, and select New > Application.
  2. Enter the name of the application in the Name field. For example, GCP-Instance-Deploy.
  3. Click Save and close.
  4. Click on the Applications dropdown, hover over the newly created application GCP-Instance-Deploy, click Menu button, and select New > Deployment Package.
  5. Enter the name of the deployment package in the Name field. For example, 1.0.0.
  6. Click Save and close.
  7. Click on the GCP-Instance-Deploy dropdown, hover over the new package 1.0.0, click Menu button, and select
    New > googlecloud > storage.

Google Cloud Storage Options

You will see the following four upload options:

  • Archive
  • File
  • Folder
  • Bucket
  1. Select one of the upload options depending on the type of artifact you want to upload.

  2. Fill in the required fields:

    • For File/Archive Spec:

      • Target File Name (optional): Rename the file upon upload.
      • Target Path in Bucket: Path inside the GCS bucket.
      • Predefined ACL: Optional if Uniform Bucket-Level Access is disabled. Archivespec Properties Filespec Properties
    • For Folder Spec:

      • Target Path in Bucket: Required.
      • Sync Folder: If enabled, syncs only changes (adds/updates).
      • Remove Deleted Files on Sync: If enabled, removes deleted files from the bucket.
      • Target File Name is not applicable for folders.

      Folderspec Properties

  3. Click Save and close after configuring the upload spec.

tip

Use the below examples to verify your initial configuration

Initial deployment Archivespec

  • Folder Spec – Sync Behavior
    If Sync Folder is enabled, only new or modified files are uploaded, and deleted files in the source are also removed from the GCS bucket. This helps maintain an exact mirror of your local folder structure.
    Sync Folder

Repeat for each artifact you want to upload to GCS as part of the deployment package.

Step 3.2: Manage Google Cloud Storage Buckets

You can create, update, and delete GCS buckets as part of your deployment lifecycle.

Create a Bucket

  1. Navigate to your deployment package as described in the previous steps.

  2. Click Menu Button Menu button and select New > googlecloud > storage > BucketSpec.

    GCS Bucket Configuration

  3. Configure the required properties:

    • Bucket Name: Enter a globally unique name
    • Region: Select the deployment region
    • Storage Class: Choose from Standard, Nearline, Coldline, or Archive
  4. Configure optional properties as needed:

    • Policy: Attach IAM policies
    • Uniform Bucket-Level Access: Enable if required
    • Public Access Prevention: Enable to prevent public access
    • Logging: Enable access logging and specify target bucket
    • Target Bucket: Required when logging is enabled
    • Target Prefix: Optional prefix for log files. Default value /logs
    • Static Website Hosting: Enable for static websites and specify index document
    • Index Document: Required when static hosting is enabled
    • Error Document: Optional custom error page
  5. Click Save.

  6. Deploy the package to create the bucket.

Update a Bucket

  1. Create a new deployment package version.
  2. Modify the bucket configuration properties as needed.
  3. Deploy the updated package to apply changes to the existing bucket.

Delete a Bucket

  1. Empty the bucket first: Remove all objects from the bucket before attempting deletion.
  2. Undeploy the deployment package.
  3. The empty bucket will be deleted successfully.
warning
  • Only empty buckets can be deleted
  • If the bucket contains objects, deletion will fail with error:
    NotEmptyException: 409 BucketNotEmpty (bucket_name)
  • You must remove all objects from the bucket before attempting deletion
  • Bucket deletion is irreversible once the bucket is empty

Step 3.3: Deploy Instance Spec

  1. Click Explorer, hover over Applications, Click Menu button and select New > Application.
  2. Enter the name of the application in the Name field. For example GCP-Instance-Deploy.
  3. Click Save and close.
  4. Click on Applications drop down, hover over the new application created GCP-Instance-Deploy, Click Menu button and select New > Deployment Package.
  5. Enter the name of the configuration item in the Name field. For example 1.0.0.
  6. Click Save and close.
  7. Click on GCP-Instance-Deploy drop down, hover over the new package created 1.0.0. Click Menu button and select New > googlecloud > compute > InstanceSpec.

Configure Instance Spec

  1. Enter the name of the configuration item in the Name field.
  2. Provide the following values:
  • Zone
  • Machine
  • Image Project
  • Image
  • Wait On Create*
  • Wait On Destroy*

Configure Instance Spec

  1. Click Save.
note

You can add additional configuration as per your requirement.

  1. To add additional configuration, hover over instance-spec, Click Menu button and select New > and select the required spec.

Configure Instance Spec

  1. Start the deployment. For more information, see Start a Deployment.

Configure Instance Spec

  1. Check the deployment on google cloud.

Configure Instance Spec

Step 3.4: Deploy Template Spec

  1. Click Explorer, hover over Applications, Click Menu button and select New > Application.
  2. Enter the name of the application in the Name field. For example GCP-Instance-Deploy.
  3. Click Save and close.
  4. Click on Applications drop down, hover over the new application created GCP-Instance-Deploy, Click Menu button and select New > Deployment Package.
  5. Enter the name of the configuration item in the Name field. For example 1.0.0.
  6. Click Save and close.
  7. Click on GCP-Instance-Deploy drop down, hover over the new package created 1.0.0. Click Menu button and select New > googlecloud > compute > TemplateSpec.

Configure Instance Spec

  1. Enter the name of the configuration item in the Name field.
  2. Provide the following values:
  • Zone
  • Machine
  • Image Project
  • Image
  • Wait On Create*
  • Wait On Destroy*

Configure Instance Spec

  1. Click Save.
note

You can add additional configuration as per your requirement.

  1. To add additional configuration, hover over instance-spec, Click Menu button and select New > and select the required spec.

Configure Instance Spec

  1. Start the deployment. For more information, see Start a Deployment.

Configure Instance Spec

  1. Check the deployment on google cloud.

Configure Instance Spec

Step 3.5: Deploy DialogFlowAgentZIP Spec

  1. Click Explorer, hover over Applications, Click Menu button and select New > Application.
  2. Enter the name of the application in the Name field. For example GCP-Instance-Deploy.
  3. Click Save and close.
  4. Click on Applications drop down, hover over the new application created GCP-Instance-Deploy, Click Menu button and select New > Deployment Package.
  5. Enter the name of the configuration item in the Name field. For example 1.0.0.
  6. Click Save and close.
  7. Click on GCP-Instance-Deploy drop down, hover over the new package created 1.0.0. Click Menu button and select New > googlecloud > dialogflow > AgentZipSpec.

Configure DialogFlow Agent ZIP Spec

  1. Type the name of the configuration in Name field.
  2. Browse the file from Choose file field.
  3. Type true in Restore Agent field.

Configure DialogFlow Agent ZIP Spec

  1. Click Save and close.
note

The File Uri field updates once you save the configuration.

  1. Start the deployment. For more information, see Start a Deployment.

Configure DialogFlow Agent ZIP Spec

Configure DialogFlow Agent ZIP Spec

  1. Check the output at dialogflow.cloud.google.com for the selected zip file.

Configure DialogFlow Agent ZIP Spec