Skip to main content

Crawl GCS assets

The Google Cloud Storage crawler fetches assets from Google Cloud Storage and publishes them to Atlan for discovery. The crawler catalogs buckets and objects from your GCS environment.

Prerequisites

Before you begin, make sure you have:

  • Completed the GCS setup guide.
  • GCS credentials (Project ID and Service Account JSON key) ready.
  • Determined which GCS buckets and prefixes you want to catalog.

Create crawler workflow

Start by creating a new GCS Assets workflow:

  1. Navigate to the bottom right of any screen and select Workflow.
  2. Select Marketplace from the top if you are creating a new workflow, or select Manage if you want to use an existing workflow.
  3. Select Google Cloud Storage from the package list.
  4. Select Setup Workflow.

Configure extraction method

Choose how to connect to your GCS environment. Connect directly to GCS using Atlan's credential store:

  1. Add the Project ID (Google Cloud project ID that contains the buckets).
  2. Add the Service Account JSON key that you created in the GCS setup guide.
  3. Select Test Authentication to verify connectivity.
  4. Select Next.

Configure metadata filters

Set up filters to control which buckets and objects get cataloged:

  • Bucket prefix: Publish to Atlan only the buckets that start with the specified prefix. Leave empty if you need all buckets.
  • Object prefix: Publish to Atlan only the objects that start with the specified prefix. Leave empty if you need all objects.
  • Object delimiter (applicable only if inventory report isn't selected): Use this to list all blobs in a "folder," for example "public/." The delimiter argument restricts results to only the "files" in the given "folder." Without the delimiter, the entire tree under the prefix is returned.

For example, given these blobs:

  • a/1.txt
  • a/b/2.txt

If prefix = 'a/', without a delimiter, the following blobs are published to Atlan:

  • a/1.txt
  • a/b/2.txt

However, if prefix = 'a/' and delimiter = '/', only the file directly under 'a/' is published to Atlan:

  • a/1.txt
  • Bucket exclusion list: List of buckets (comma separated) to be excluded.

Configure ingestion method

Choose how to ingest data from GCS:

Configure direct crawling options:

  • Build abstraction layer: Whether to build abstraction layer on top of files (default: No).
  • Publish as-is patterns: List of comma-separated patterns to be published as-is (without abstraction layer). Applicable only if Build abstraction layer = Yes.
  • Regex to match characters to replace: Regular expression to match characters to replace. It acts on the file full name (without bucket prefix).
  • Regex with replacement characters: Regular expression with replacement characters. It acts on the file full name (without bucket prefix).

Configure asset handling

Control how assets are created and updated:

  • Input handling: How to handle assets in the CSV file that don't exist in Atlan:

    • Create full: Create a full-fledged asset that can be discovered and maintained like other assets in Atlan.
    • Create partial: Create a "partial" asset. These are only shown in lineage and can't be discovered through search. These are useful when you want to represent a placeholder for an asset that you lack full context about, but also don't want to ignore completely.
    • Update only: Only update assets that already exist in Atlan, and don't create any asset of any kind. Note: READMEs and links in Atlan are technically separate assets—these are still created, even in Update only mode.
  • Delta handling: Whether to treat the input file as an initial load, full replacement (deleting any existing assets not in the file), or only incremental (no deletion of existing assets).

  • Remove attributes: How to delete any assets not found in the latest file.

  • Reload which assets: Which assets to reload from the latest input CSV file. Changed assets only calculates which assets have changed between the files and only attempts to reload those changes.

Configure connection

Set up the connection details:

  • Connection: Name of the connection that's created in Atlan. The connection name must be unique across all Google Cloud Storage connections.

Need help

If you run into issues during the GCS crawling process:

See also