Set up Mainframe Assessment Tool

This page describes how to use the guided setup companion in Google Cloud Modernization Hub to deploy and configure a Mainframe Assessment Tool instance in your Google Cloud project.

Mainframe Assessment Tool analyzes legacy mainframe artifacts, such as COBOL, PL/I, Assembler, JCL, and DB2 schemas, to generate inventory reports, dependency maps, and modernization complexity scores. Modernization Hub guides you through configuring your assessment environment, generating customized Google Cloud CLI commands to run in Cloud Shell or your local terminal, creating a Compute Engine virtual machine (VM) instance, and connecting to the Mainframe Assessment Tool web application through an Identity-Aware Proxy (IAP) tunnel.

Before you begin

Before deploying a Mainframe Assessment Tool instance, confirm that your Google Cloud project meets the network, API, Identity and Access Management (IAM), settings bucket, and billing prerequisites.

Verify project prerequisites

  1. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
  2. Enable billing for your project. Provisioning Mainframe Assessment Tool resources creates dedicated Compute Engine instances and Persistent Disk volumes, and standard Google Cloud compute, storage, and Agent Platform charges apply.
  3. Verify that your project has an existing Virtual Private Cloud (VPC) network and subnet in the region where you plan to deploy the Mainframe Assessment Tool VM instance. If you don't have one in your target region, see Create and manage VPC networks.

    Because the setup companion creates the Mainframe Assessment Tool VM without an external IP address (--no-address), enable Private Google Access on the target subnet or configure Cloud NAT on the VPC network so the VM can reach Google Cloud APIs.

  4. Confirm that your user account has the required permissions to enable APIs, configure firewall rules and service accounts, and provision Compute Engine resources. For detailed Mainframe Assessment Tool infrastructure, network, and optional data residency connectivity requirements, see Configure your Google Cloud project for Mainframe Assessment Tool.

Enable required APIs

To use Modernization Hub and deploy Mainframe Assessment Tool, enable the required Google Cloud service APIs in your project:

gcloud services enable \
    aiplatform.googleapis.com \
    cloudresourcemanager.googleapis.com \
    compute.googleapis.com \
    logging.googleapis.com \
    storage.googleapis.com \
    --project=PROJECT_ID

Replace PROJECT_ID with your Google Cloud project ID.

Required roles

To provision a Mainframe Assessment Tool instance and manage job state files, make sure that your Google Cloud project's service accounts and your user account have the required roles on your project.

To get the permissions that you need to provision Mainframe Assessment Tool analysis virtual machines and manage assessment jobs, ask your administrator to grant you the following IAM roles on your project:

  • Enable required Google Cloud APIs: Service Usage Admin (roles/serviceusage.serviceUsageAdmin)
  • Provision Mainframe Assessment Tool VM instances: Compute Instance Admin (v1) (roles/compute.instanceAdmin.v1)
  • Create IAP ingress and deny firewall rules: Compute Security Admin (roles/compute.securityAdmin)
  • Create a dedicated service account for the Mainframe Assessment Tool VM instance: Create Service Accounts (roles/iam.serviceAccountCreator)
  • Grant project-level IAM roles to the dedicated service account: Project IAM Admin (roles/resourcemanager.projectIamAdmin)
  • Attach the dedicated service account to the Mainframe Assessment Tool VM instance: Service Account User (roles/iam.serviceAccountUser)
  • Forward TCP traffic through IAP to the Mainframe Assessment Tool VM instance: IAP-secured Tunnel User (roles/iap.tunnelResourceAccessor)
  • Read and update .pb workspace state files in the settings bucket: Storage Object User (roles/storage.objectUser)

For more information about granting roles, see Manage access to projects, folders, and organizations.

You might also be able to get the required permissions through custom roles or other predefined roles.

Configure a workspace settings bucket

Register a designated Cloud Storage bucket on the Modernization Hub > Settings page, such as gs://PROJECT_ID-modernization-hub, to store the workspace binary state files (mainframe_jobs.pb, dotnet_jobs.pb, and java_jobs.pb). Saving a settings bucket lets Modernization Hub persist and resume your Mainframe Assessment Tool setup progress.

If you haven't configured a settings bucket yet, the Mainframe Assessment Setup and Mainframe Assessment Tool (MAT) Setup Companion pages display a warning banner with a Go to Settings button. Updating workspace settings on the Settings page requires the resourcemanager.projects.update permission on your project.

Create and launch a Mainframe Assessment Tool instance

The guided setup companion generates customized gcloud CLI commands prefilled with your deployment parameters so you don't have to construct them manually. To deploy Mainframe Assessment Tool without Modernization Hub, see Set up and access Mainframe Assessment Tool.

To configure, deploy, and launch a Mainframe Assessment Tool instance by using the setup companion, follow these steps:

  1. In the console, go to the Modernization Hub page:

    Go to Modernization Hub

  2. On the landing page, locate the Mainframe Assessment Tool (MAT) card and click Setup Environment. The Mainframe Assessment Setup page appears.

Configuration

  1. On the Mainframe Assessment Setup page, in the Configure Mainframe Assessment Environment section, for Job Name, enter a unique name to identify this modernization job, such as mat-assessment-1.

    The name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens.

  2. For Region and Zone, select the region and zone where you want to provision your Mainframe Assessment Tool resources, such as us-central1 and us-central1-a.

    You can't change the region and zone after you save the configuration.

  3. For Machine Type, select a Compute Engine machine type for the VM instance. For 5 to 50 MB of assessment data, select e2-standard-8 (Recommended).

  4. For Boot Disk Size (GB), enter a boot disk size of at least 10 GB. The default is 100 GB.

  5. In the Network Options section, for VPC Network Name and Subnet Name, select an existing VPC network and subnet in your selected region.

  6. For Service Account ID, enter the ID for the dedicated Mainframe Assessment Tool service account. The default is mat-service-account.

  7. Click Continue to Setup Companion.

Setup / Deployment

For each command card, click Run in Cloud Shell and press Enter, or click Copy command to run it in your local terminal.

  1. Optional: If you use a local terminal, set your active project by running gcloud config set project PROJECT_ID.
  2. In the Enable Required APIs section, run the generated command to verify and enable the Compute Engine API and Agent Platform API.
  3. In the Configure Firewall Rules section, run the generated commands for Allow Ingress from IAP and Deny All Other Ingress to allow IAP TCP forwarding on port 4000 and deny all other ingress traffic. If either firewall rule already exists in your VPC network from an earlier setup, you can skip creating that rule.
  4. In the Configure Service Account & IAM Roles section, run the generated commands for Create Dedicated Service Account, Grant Agent Platform User Role, and Grant Logs Writer Role to create the dedicated service account and grant it the Agent Platform User (roles/aiplatform.user) and Logs Writer (roles/logging.logWriter) roles. Grant these roles to the dedicated service account, not only to your user account.
  5. Click Next to save your progress and continue to Access.

Access

After you create the VM instance, wait 2 to 5 minutes for the guest OS and the Mainframe Assessment Tool web service on port 4000 to finish starting. When the service is ready, the IAP tunnel command outputs Listening on port [4000]. If the connection test fails, wait a minute and run the command again.

  1. In the Start the IAP tunnel section, for Local Port, verify or enter the local port to forward to port 4000 on the VM instance (the default is 4000), and then run the generated tunnel command in Cloud Shell or your local terminal.
  2. In the Choose your connection method section, open the Mainframe Assessment Tool web application based on where you started the tunnel:
    • Connect with Cloud Shell Web Preview: Click Open Web Preview to start the tunnel and open the preview tab. If the tunnel is already running, click Web Preview in the Cloud Shell toolbar and select Preview on port (or Change port for a custom port).
    • Connect with Local Browser: If you started the IAP tunnel in your local terminal, open the http://localhost link displayed on the card (such as http://localhost:4000) in your browser.
  3. After you verify access to the Mainframe Assessment Tool web application, click Done in the setup companion to save your completed setup and return to the Mainframe Modernization page.

What's next

After you deploy and connect to your Mainframe Assessment Tool instance, use the Mainframe Assessment Tool documentation to configure settings, upload your mainframe artifacts, and run assessments: