Configure your Google Cloud project for Mainframe Assessment Tool

This page describes the process to set up and configure your Google Cloud project to work with Mainframe Assessment Tool.

Before you begin

  1. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  2. Make sure that billing is enabled for your Google Cloud project. For more information, see Verify the billing status of your projects.

  3. Create a dedicated service account to access Mainframe Assessment Tool. For more information, see Create service accounts.

  4. For large assessments, make sure that you have sufficient quota in the region where you plan to create the Mainframe Assessment Tool instance. Larger quotas can be allocated by purchasing a Provisioned Throughput.

Enable APIs

  1. Enable the Compute Engine API.

    Enable Compute Engine API

  2. Enable the Agent Platform API.

    Enable Agent Platform API

Configure firewall rules

To enable secure access to the Mainframe Assessment Tool instance through IAP, create the following firewall rules:

  1. Create a firewall rule to allow ingress traffic on TCP port 4000 by using IAP for TCP forwarding:

    gcloud compute firewall-rules create allow-ingress-from-iap \
      --direction=INGRESS \
      --action=allow \
      --rules=tcp:4000\
      --source-ranges=35.235.240.0/20
    
  2. Create a firewall rule to deny all other ingress traffic to your Mainframe Assessment Tool instance:

     gcloud compute firewall-rules create deny-all-other-ingress \
      --direction=ingress \
      --action=deny \
      --rules=all \
      --source-ranges=0.0.0.0/0 \
      --network=your-network-name \
      --priority=65535
    

Optional: Configure private connectivity for data residency

Complete this section only if your Mainframe Assessment Tool instance doesn't have an external IP address, and you plan to run assessments with the Keep data in my region option enabled. If your instance has an external IP address or you don't use data residency, you can skip this section.

Without an external IP address, the Mainframe Assessment Tool instance uses Private Google Access to reach Agent Platform. Private Google Access doesn't support the multi-region endpoints (hosts in the rep.googleapis.com domain, such as aiplatform.eu.rep.googleapis.com) used for the eu and us multi-regions.

When you enable the Keep data in my region option, the model calls are restricted to the assessment region and its multi-region without a global fallback. Therefore, models served only on a multi-region endpoint are unreachable. If data residency is disabled, Mainframe Assessment Tool falls back to the global endpoint. Private Google Access supports the global endpoint, so no additional configuration is required.

To let your Mainframe Assessment Tool instance reach these endpoints, follow these steps:

  1. Create a Private Service Connect endpoint that targets the multi-region endpoint in your VPC network:

    gcloud network-connectivity regional-endpoints create ENDPOINT_NAME \
        --project=PROJECT_ID \
        --region=REGION \
        --address=INTERNAL_IP \
        --network=projects/PROJECT_ID/global/networks/VPC_NETWORK \
        --subnetwork=projects/PROJECT_ID/regions/REGION/subnetworks/SUBNET \
        --target-google-api=aiplatform.eu.rep.googleapis.com
    

    Replace the following:

    • ENDPOINT_NAME: a name for the Private Service Connect endpoint.
    • PROJECT_ID: the project ID of your VPC network.
    • REGION: the region in which to create the endpoint.
    • INTERNAL_IP: an unused internal IP address from your subnet.
    • VPC_NETWORK: the name of your VPC network.
    • SUBNET: the name of the subnet in the endpoint's region.

    Replace aiplatform.eu.rep.googleapis.com with the multi-region endpoint for your region. For example, use aiplatform.us.rep.googleapis.com for the us multi-region.

    If the Mainframe Assessment Tool instance and the Private Service Connect endpoint are in different regions, add the --enable-global-access flag. Otherwise, the endpoint accepts connections only from clients in its own region.

  2. Resolve the multi-region endpoint to the Private Service Connect endpoint.

    Creating the endpoint doesn't change how the hostname resolves. If your VPC network uses a private zone to route Google APIs to a Private Google Access virtual IP address, that zone typically contains a *.googleapis.com record. Because this record also matches the multi-region endpoint, requests are routed to the virtual IP address, which cannot serve them. To resolve the multi-region endpoint to the Private Service Connect endpoint instead, add a more specific record:

    gcloud dns record-sets create aiplatform.eu.rep.googleapis.com. \
        --project=PROJECT_ID \
        --zone=DNS_ZONE \
        --type=A \
        --ttl=300 \
        --rrdatas=INTERNAL_IP
    

    Replace the following:

    • DNS_ZONE: the name of the private zone for googleapis.com in your VPC network. If your VPC network doesn't have a private zone for googleapis.com, create a private zone to hold this record.
    • INTERNAL_IP: the internal IP address that you assigned to the endpoint.
  3. Restart your Mainframe Assessment Tool instance.

    Mainframe Assessment Tool caches the models served by each endpoint and continues to use the previous results until restarted.

To verify the configuration, connect to the Compute Engine VM or a GKE node, and run the following command:

openssl s_client -connect aiplatform.eu.rep.googleapis.com:443 \
    -servername aiplatform.eu.rep.googleapis.com < /dev/null 2>/dev/null \
    | openssl x509 -noout -subject

The command must return subject=CN=aiplatform.eu.rep.googleapis.com. If it returns subject=CN=*.googleapis.com, the hostname is still resolving to the Private Google Access virtual IP address. In this case, verify the DNS record you created.

The command returns subject=CN=aiplatform.eu.rep.googleapis.com. If it returns subject=CN=*.googleapis.com, then the hostname still resolves to the Private Google Access virtual IP address, and you need to check the record that you created.

Assign IAM roles and permissions

To ensure that the dedicated service account that you created has the necessary permissions to give the Mainframe Assessment Tool components the required access to the Agent Platform API and other services, ask your administrator to grant the following IAM roles to the dedicated service account that you created:

What's next