Example: Automating service requests to create a bucket in Google Cloud Platform


Use the Google Cloud Create Bucket sample service in BMC Helix Digital Workplace Catalogto automate service requests for creating a bucket in GCP (Google Cloud Platform).

Scenario

Ajay, an application business analyst, wants to create a service to automate the task of creating a bucket in GCP. He uses the Google Cloud Create Bucket sample service content package. Ajay first creates a Google Cloud Platform connector configuration. He updates the service and publishes it to make it available to users.

Task 1: To create a Google Cloud Platform connector

  1. Log in to BMC Helix Innovation Suite.
  2. On the Administration tab, click Connectors.
  3. Select  Connectors > Google Cloud Platform, and click  Add new setting
  4. Complete the following fields: 

    Field

    Description

    Connection Id

    Connection ID for the connection.

    Name

    Name for the connection.

    Project Id

    Unique identifier of the GCP project.

    Client Email

    Email address of the associated service account. The service account represents an application. 

    Client Id

    Unique identifier that you get when you register your application with GCP.

    Private Key

    Cryptographic key that is used to authenticate a service account when the key interacts with GCP services.

    Private Key Id

    Unique identifier for the private key. It is a key file in JSON format. 

  5. Click Save.

Task 2: To verify that the Google Cloud Create Bucket service is visible

  1. Log in to BMC Helix Digital Workplace Catalog.
  2. On the Services tab, click Services.
  3. In the My Services tab, verify that the Google Cloud Create Bucket service is visible.
    image-2024-2-20_20-23-50.png

Task 3: To define the Google Cloud Create Bucket service workflow

  1. Log in to BMC Helix Digital Workplace Catalog.
  2. On the Services tab, click Services.
  3. In the My Services tab, select the Google Cloud Create Bucket service.
  4. Click Actions and click Open.
  5. Under the Service Options pane, click Edit next to the Workflow option.
    image-2024-2-20_16-5-9.png
  1. In the Workflow and Questions pane, in the Workflow section, click Edit.
    image-2024-2-20_16-7-33.png
    The following workflow is displayed in the Workflow designer. It uses the Create GCP Bucket element.
    image-2024-2-20_16-8-37.png

  2. Map the input variables to the service questionnaire so that the user responses to service questions are used as variable values.
    The following input variables are available:

    image-2024-2-20_19-30-38.png 

  3. Save the changes.

Task 4: To define the Google Cloud Create Bucket service questionnaire

  1. Log in to BMC Helix Digital Workplace Catalog.
  2. On the Services tab, click Services.
  3. In the My Services tab, select the Google Cloud Create Bucket service.
  4. Click Actions and click Open.
  5. Under the Service Options pane, click Edit next to the Workflow option.
    image-2024-2-20_19-34-9.png

  6. In the Workflow and Questions pane, in the Questions section, click Edit.
    image-2024-2-20_19-35-13.png
    The following questions are displayed in the Questions Designer:

    Questions

    Description

    Project Id

    The unique identifier of the GCP project.

    Bucket Name

    A unique name of the bucket that you want to create.

    Region

    The name of the region in which you want to create the bucket.

    Dual Regions

    A specific pair of locations that you can select based on the region.

    Storage Class Name

    The type of bucket you want to create based on the data storage duration and access frequency.

    Prevent Public Access

    The option to prevent the public from using your storage bucket.

    • TruePrevent public access
    • FalseAllow public access

    Uniform Access Control

    The option to decide the access control permission for the bucket.

    The possible values are:

    • UniformThe object access is controlled through bucket-level permission. 
    • Fine grainedThe object access is controlled through bucket-level and object-level permission. 

    Max Number of Versions Per Object

    The number of versions you can have for every object in your bucket.

    Expire Non-Current Versions After Days

    (If Maximum Number of Versions Per Object is not selected) The duration to keep the objects in your bucket.

    Retention Policy Duration

    Select the retention policy parameters only if you have not selected Maximum Number of Versions Per Object.

    The duration to keep the objects in your bucket.

    Retention Policy Unit

    The unit of measurement for the retention policy duration. 

    The possible values are: seconds, minutes, hours, days, months, years.

  7. If you have added additional input variables in the workflow to receive inputs from the service requester, add questions that correspond to the variables.
  8. Save the changes.

Task 5: To publish the Google Cloud Create Bucket service

  1. Log in to BMC Helix Digital Workplace Catalog.
  2. On the Services tab, click Services.
  3. In the My Services tab, select the Google Cloud Create Bucket service.
  4. Click Actions and click Open.
  5. Under the Service Options pane, click 22_1_Example_Icon for publishing service.png, and click Publish.
    image-2024-2-20_19-44-28.png

After you publish the service, the service is available to users.

Task 6: To test the Google Cloud Create Bucket service

  1. Log in to BMC Helix Digital Workplace application.
  2. Submit a bucket creation request by using the Google Cloud Create Bucket service.
    image-2024-2-20_19-47-25.png

Result

The Google Cloud Create Bucket service is available to users. Users can submit Google bucket creation requests, which are processed automatically.


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*