Overview

Perform operations on Instances via the Workflow Automator


Description

Orchestration apps let you automate repeatable tasks and actions that span across a diverse set of systems and applications using workflows. The list of actions supported for this app include:


VM Instance Management

  1. Get IAM Policy

  2. Get Instance

  3. Reset Instance

  4. Set Labels

  5. Set Tags

  6. Start Instance

  7. Stop Instance

  8. Delete Instance


App Installation Parameters

  1. Project ID

  2. Service Account Credentials

 

Prerequisites

To locate your project ID

  1. Go to the GCP Console
    Project ID will be located under the Project Info section. 

To create Service Account Credentials

  1. Open the Service accounts page

  2. Click on Select a project, choose a project and click Open.

  1. Click add Create service account.

  1. Under Service account details, fill in the "Name", "ID", and "Description" of the service account, then click Create.

  1. Optional: Under Service account permissions, select the IAM roles to grant to the service account, then click Continue.

  2. Optional: Under Grant users access to this service account, add the users or groups that are allowed to use and manage the service account.

  3. After the service account is created, open the service account, click on "Edit" then click "Add Key" under "Keys", then click "Create New Key".

                  8.Copy entire service account credentials from downloaded json file and paste inside Service                                     Account Credentials installation parameter

Your new public/private key pair is generated and downloaded to your machine; it serves as the only copy of the private key. You are responsible for storing it securely. If you lose this key pair, you will need to generate a new one.

Note: After you create a key, you might need to wait for 60 seconds or more before you use the key. If you try to use a key immediately after you create it, and you receive an error, wait at least 60 seconds and try again.

Enable API & Services

  1. Go to https://console.developers.google.com/

  2. Click on Enable API & Services

  1. Search for Compute Engine API

  1. Enable Compute Engine API

Usecases

Now that you've successfully installed the Google Cloud Platform orchestration app, please have a look at the sample use case below to show how the app can be used efficiently.