arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Integrate a GCP organization or project

Create an integration to manage access to a GCP organization or project resources

Apono offers GCP users a simple way to centralize cloud management through our platform. Through a single integration, you can manage multiple GCP services across various organizations and projects.


hashtag
Prerequisites

Item
Description

hashtag
Associate BigQuery dataset permissions

Google BigQuery is a fast, scalable, secure, fully managed data warehouse service in the cloud, serving as a primary data store for vast datasets and analytic workloads.

To add this resource to your Google Project or Organization, you must create a custom role with BigQuery dataset permissions and assign the role to the service account for the Apono connector.

circle-check

The following instructions in this section use the Google Cloud CLI.

However, you can also through the Google Console, and IAM client library, or the REST API. Additionally, you can to the Apono connector through the Google Console.

Follow these steps to associate the permissions through the Google Cloud CLI:

  1. In your shell environment, log in to Google Cloud and enable the API.

  2. Set the environment variables.

  1. Create the custom role. Be sure to replace the placeholders (<ROLE_ID>, <TITLE>, and <DESCRIPTION>) with actual values of your choosing for the role ID, title, and description of the role.

  1. Using the role ID defined in the previous step, assign the custom role to the Apono connector service account.


hashtag
Enable the Cloud Asset API

To manage and monitor your cloud assets, you must enable the Cloud Asset API.

Follow these steps to enable this API:

  1. In your shell environment, log in to Google Cloud and enable the API.


hashtag
Integrate with GCP

hashtag
Organization

circle-check

You can also use the steps below to integrate with Apono using Terraform.

In step 10, instead of clicking Confirm, follow the Are you integrating with Apono using Terraform? guidance.

Follow these steps to integrate Apono with your GCP organization:

  1. On the tab, click GCP. The Connect Integrations Group page appears.

  2. Under Discovery, click Google Organization.

  3. Click one or more resource types to sync with Apono.

circle-info

Apono automatically discovers and syncs all the instances in the environment. After syncing, you can manage to these resources.

  1. Click Next. The Apono connector section expands.

  2. From the dropdown menu, select a connector. Choosing a connector links Apono to the roles available in the organization where the connector is located.

circle-check

If the desired connector is not listed, click + Add new connector and follow the instructions for creating an .

  1. Click Next. The Integration Config section expands.

  2. Define the Integration Config settings.

    Setting
    Description
chevron-right💡Are you integrating with Apono using Terraform?hashtag

If you want to integrate with Apono using Terraform, follow these steps instead of clicking Confirm:

  1. At the top of the screen, click View as Code. A modal appears with the completed Terraform configuration code.

After connecting your GCP organization to Apono, you will be redirected to the Connected tab to view your integrations. The new GCP integration will initialize once it completes its first data fetch. Upon completion, the integration will be marked Active.

Now that you have completed this integration, you can that grant permission to GCP organizational roles.

hashtag
Project

circle-info

You can also use the steps below to integrate with Apono using Terraform.

In step 10, instead of clicking Confirm, follow the Are you integrating with Apono using Terraform? guidance.

Follow these steps to integrate Apono with your GCP project:

  1. On the tab, click GCP. The Connect Integrations Group page appears.

  2. Under Discovery, click Google Project.

  3. Click one or more resource types to sync with Apono.

circle-info

Apono automatically discovers and syncs all the instances in the environment. After syncing, you can manage to these resources.

  1. Click Next. The Apono connector section expands.

  2. From the dropdown menu, select a connector. Choosing a connector links Apono to the roles available in the organization where the connector is located.

circle-check

If the desired connector is not listed, click + Add new connector and follow the instructions for creating an .

  1. Click Next. The Integration Config section expands.

  2. Define the Integration Config settings.

    Setting
    Description
chevron-right💡Are you integrating with Apono using Terraform?hashtag

If you want to integrate with Apono using Terraform, follow these steps instead of clicking Confirm:

  1. At the top of the screen, click View as Code. A modal appears with the completed Terraform configuration code.

After connecting your GCP project to Apono, you will be redirected to the Connected tab to view your integrations. The new GCP integration will initialize once it completes its first data fetch. Upon completion, the integration will be marked Active.

Now that you have completed this integration, you can that grant permission to GCP organizational roles.

  • Click Next. The Get more with Apono section expands.

  • Define the Get more with Apono settings.

    Setting
    Description

    Credential Rotation

    (Optional) Number of days after which the database credentials must be rotated Learn more about the .

    User cleanup after access is revoked (in days)

    (Optional) Defines the number of days after access has been revoked that the user should be deleted

    Learn more about .

    Custom Access Details

    (Optional) Instructions explaining how to access this integration's resources Upon accessing an integration, a message with these instructions will be displayed to end users in the User Portal. The message may include up to 400 characters. To view the message as it appears to end users, click Preview.

    Integration Owner

  • Click Confirm.

  • Click to copy the code.
  • Make any additional edits.

  • Deploy the code in your Terraform.

  • Refer to Integration Config Metadataarrow-up-right for more details about the schema definition.

  • Click Next. The Get more with Apono section expands.

  • Define the Get more with Apono settings.

    Setting
    Description

    Custom Access Details

    (Optional) Instructions explaining how to access this integration's resources Upon accessing an integration, a message with these instructions will be displayed to end users in the User Portal. The message may include up to 400 characters. To view the message as it appears to end users, click Preview.

    Integration Owner

    (Optional) Fallback approver if no is found Follow these steps to define one or several integration owners:

    1. From the Attribute dropdown menu, select User or Group under the relevant identity provider (IdP) platform.

    2. From the Value dropdown menu, select one or multiple users or groups.

    NOTE: When Resource Owner is defined, an Integration Owner

    Resource Owner

    (Optional) Group or role responsible for managing access approvals or rejections for the resource Follow these steps to define one or several :

    1. Enter a Key name. This value is the name of the tag created in your cloud environment.

    2. From the Attribute dropdown menu, select an attribute under the IdP platform to which the key name is associated. Apono will use the value associated with the key (tag) to identify the resource owner. When you update the membership of the group or role in your IdP platform, this change is also reflected in Apono.

    NOTE: When this setting is defined, an

  • Click Confirm.

  • Click to copy the code.
  • Make any additional edits.

  • Deploy the code in your Terraform.

  • Refer to Integration Config Metadataarrow-up-right for more details about the schema definition.

    Apono Connector

    On-prem connection serving as a bridge between a Google Cloud instance and Apono

    Apono Premium

    Apono planarrow-up-right providing the most features and dedicated account support

    Google User Account

    User account with owner permissionsarrow-up-right

    Google Cloud Command Line Interface (Google Cloud CLI)

    Command-line interfacearrow-up-right used to manage Google Cloud resources

    Google Cloud Information

    Information for your Google Cloud instance associated with the Apono connector Google-defined:

    • (Organization) Organization IDarrow-up-right

    • Project IDarrow-up-right

    User-defined

    • Service Account Name

    Integration Name

    Unique, alphanumeric, user-friendly name used to identify this integration when constructing an access flow

    Integration Name

    Unique, alphanumeric, user-friendly name used to identify this integration when constructing an access flow

    create a custom rolearrow-up-right
    assign the custom rolearrow-up-right
    Catalogarrow-up-right
    access flows
    Apono connector
    create access flows
    Catalogarrow-up-right
    access flows
    Apono connector
    create access flows
    Google Organization environment option
    Google Project environment option

    Organization ID

    Project ID

    gcloud auth login
    gcloud services enable cloudresourcemanager.googleapis.com
    gcloud services enable iam.googleapis.com
    export GCP_PROJECT_ID=<GOOGLE_PROJECT_ID>
    export SERVICE_ACCOUNT_NAME=<SERVICE_ACCOUNT_NAME>
    export GCP_ORGANIZATION_ID=<GOOGLE_ORGANIZATION_ID>
    export GCP_PROJECT_ID=<GOOGLE_PROJECT_ID>
    export SERVICE_ACCOUNT_NAME=<SERVICE_ACCOUNT_NAME>
    gcloud iam roles create <ROLE_ID> --project=$GCP_PROJECT_ID --title="<TITLE>" --description="<DESCRIPTION>" --permissions=bigquery.datasets.get,bigquery.datasets.update,bigquery.datasets.getIamPolicy,bigquery.datasets.setIamPolicy --stage=ALPHA
    gcloud iam roles create <ROLE_ID> --organization=$GCP_ORGANIZATION_ID --title="<TITLE>" --description="<DESCRIPTION>" --permissions=bigquery.datasets.get,bigquery.datasets.update,bigquery.datasets.getIamPolicy,bigquery.datasets.setIamPolicy --stage=ALPHA
    gcloud projects add-iam-policy-binding $GCP_PROJECT_ID --member="serviceAccount:$SERVICE_ACCOUNT_NAME@$GCP_PROJECT_ID.iam.gserviceaccount.com" --role="projects/$GCP_PROJECT_ID/roles/<ROLD_ID>"
    gcloud organizations add-iam-policy-binding $GCP_ORGANIZATION_ID --member="serviceAccount:$SERVICE_ACCOUNT_NAME@$GCP_PROJECT_ID.iam.gserviceaccount.com" --role="organizations/$GCP_ORGANIZATION_ID/roles/<ROLE_ID>"
    gcloud auth login
    gcloud services enable cloudasset.googleapis.com --project=<GOOGLE_PROJECT_ID>
    must be defined.
    Integration Owner
    must also be defined.

    (Optional) Fallback approver if no resource owner is found Follow these steps to define one or several integration owners:

    1. From the Attribute dropdown menu, select User or Group under the relevant identity provider (IdP) platform.

    2. From the Value dropdown menu, select one or multiple users or groups.

    NOTE: When Resource Owner is defined, an Integration Owner must be defined.

    Resource Owner

    (Optional) Group or role responsible for managing access approvals or rejections for the resource Follow these steps to define one or several resource owners:

    1. Enter a Key name. This value is the name of the tag created in your cloud environment.

    2. From the Attribute dropdown menu, select an attribute under the IdP platform to which the key name is associated. Apono will use the value associated with the key (tag) to identify the resource owner. When you update the membership of the group or role in your IdP platform, this change is also reflected in Apono.

    NOTE: When this setting is defined, an Integration Owner must also be defined.

    GCP organization IDarrow-up-right
    Credentials Rotation Policy
    Periodic User Cleanup & Deletion
    GCP project IDarrow-up-right
    resource owner
    resource owners