olOpsLyft Docs

Google Cloud

Connect your Google Cloud projects to OpsLyft optimization.

Contents

Introduction

OpsLyft reads resource configuration and usage metrics on a regular schedule, is read-only, and never reads the contents of your data, traffic or logs.

You create a custom role (get and list permissions only) and grant it to OpsLyft's service account on a project, a folder or the organization. OpsLyft reads every project the grant reaches. The role files list every permission with its purpose.

The organization role file ends with an optional discovery block that lets OpsLyft find your projects itself. Keep it if you send an organization or folder ID. Delete it if you send project IDs instead.

Choose your path

OpsLyft already has access (a role is present in your projects, folders or organization): follow Existing integration with OpsLyft. OpsLyft does not have access to your Google Cloud environment yet: follow New integration with OpsLyft.

Values

NameValue
OpsLyft service accountopslyft-optimization@rock-bonus-299515.iam.gserviceaccount.com
Organization role file URLhttps://gcp-optimization-integration-permissions-template.s3.amazonaws.com/opslyft-gcp-role-organization.yaml
Project role file URLhttps://gcp-optimization-integration-permissions-template.s3.amazonaws.com/opslyft-gcp-role-project.yaml
Suggested role IDOpslyftOptimizationRole

Integration Steps

New integration with OpsLyft

Folder or organization level

Project level

Existing integration with OpsLyft

Check current integration state

Update: existing role at project level

Update: existing role at organization level

Replace the role with an updated role file

Set up your terminal

Share with us

Send OpsLyft these values. Send only the rows that apply to you:

FieldWhat to sendHow to get it
Path followedNew integration with OpsLyft or Existing integration with OpsLyftEnter manually
Organization IDThe numeric ID, if you used organization or folder levelRun echo $ORGANIZATION_ID
Folder IDsThe folders you granted on, if anyRun echo "${FOLDERS[@]}"
Project IDsThe projects you granted on one by one. For an organization or folder grant the list is optional; the project lists from step 8 of Folder or organization level helpList the projects with the role attached, List the organization projects or List the folder projects
ExclusionsProjects and folders OpsLyft should skip; optionally, resource types to skipEnter manually
Service accountThe address you granted the role to ($OPSLYFT_SA)Listed in Values

When something changes later, send an update to the same table. A project below a granted organization or folder is read automatically if you kept the discovery block; enable its APIs for the services it uses. If you deleted the discovery block, send an updated project list when projects change.

Reference commands

Troubleshooting

Remove access

On this page