> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-fbfa8bee.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Step-by-step guide to create your first Google Cloud Storage ClickPipe.

# Creating your first GCS ClickPipe

export const props_0 = undefined

export const provider_0 = "gcs"

The GCS ClickPipe provides a fully-managed and resilient way to ingest data from Google Cloud Storage (GCS). It supports both **one-time** and **continuous ingestion** with exactly-once semantics.

<Steps>
  <Step>
    <h2 id="1-select-the-data-source">
      Select the data source
    </h2>

    **1.** In ClickHouse Cloud, select **Data sources** in the main navigation menu and click **Create ClickPipe**.

    <Image img="/images/integrations/data-ingestion/clickpipes/cp_step0.png" alt="Select imports" size="lg" border />

    {props_0.provider_0 === 's3' && <S3DataSource />}

    {props_0.provider_0 === 'gcs' && <GCSSDataSource />}
  </Step>

  <Step>
    <h2 id="2-setup-your-clickpipe-connection">
      Setup your ClickPipe connection
    </h2>

    **1.** To setup a new ClickPipe, you must provide details on how to connect to and authenticate with your object storage service.

    {props_0.provider_0 === 's3' && <S3Connection />}

    {props_0.provider_0 === 'gcs' && <GCSConnection />}

    **2.** Click **Incoming data**. ClickPipes will fetch metadata from your bucket for the next step.
  </Step>

  <Step>
    <h2 id="3-select-data-format">
      Select data format
    </h2>

    The UI will display a list of files in the specified bucket.
    Select your data format (we currently support a subset of ClickHouse formats) and if you want to enable continuous ingestion.
    See the "continuous ingest" section in the overview page for more details.

    <Image img="/images/integrations/data-ingestion/clickpipes/cp_step3_object_storage.png" alt="Set data format and topic" size="lg" border />
  </Step>

  <Step>
    <h2 id="5-configure-table-schema-settings">
      Configure table, schema and settings
    </h2>

    In the next step, you can select whether you want to ingest data into a new ClickHouse table or reuse an existing one.
    Follow the instructions in the screen to modify your table name, schema, and settings.
    You can see a real-time preview of your changes in the sample table at the top.

    <Image img="/images/integrations/data-ingestion/clickpipes/cp_step4a.png" alt="Set table, schema, and settings" size="lg" border />

    You can also customize the advanced settings using the controls provided

    <Image img="/images/integrations/data-ingestion/clickpipes/cp_step4a3.png" alt="Set advanced controls" size="lg" border />

    Alternatively, you can decide to ingest your data in an existing ClickHouse table.
    In that case, the UI will allow you to map fields from the source to the ClickHouse fields in the selected destination table.

    <Image img="/images/integrations/data-ingestion/clickpipes/cp_step4b.png" alt="Use an existing table" size="lg" border />

    <Info>
      You can also map [virtual columns](/reference/functions/table-functions/s3#virtual-columns), like `_path` or `_size`, to fields.
    </Info>
  </Step>

  <Step>
    <h2 id="6-configure-permissions">
      Configure permissions
    </h2>

    Finally, you can configure permissions for the internal ClickPipes user.

    **Permissions:** ClickPipes will create a dedicated user for writing data into a destination table. You can select a role for this internal user using a custom role or one of the predefined role:

    * `Full access`: with the full access to the cluster. Required if you use materialized view or Dictionary with the destination table.
    * `Only destination table`: with the `INSERT` permissions to the destination table only.

    <Image img="/images/integrations/data-ingestion/clickpipes/cp_step5.png" alt="Permissions" size="lg" border />
  </Step>

  <Step>
    <h2 id="7-complete-setup">
      Complete setup
    </h2>

    By clicking on "Complete Setup", the system will register your ClickPipe, and you'll be able to see it listed in the summary table.

    <Image img="/images/integrations/data-ingestion/clickpipes/cp_success.png" alt="Success notice" size="sm" border />

    <Image img="/images/integrations/data-ingestion/clickpipes/cp_remove.png" alt="Remove notice" size="lg" border />

    The summary table provides controls to display sample data from the source or the destination table in ClickHouse

    <Image img="/images/integrations/data-ingestion/clickpipes/cp_destination.png" alt="View destination" size="lg" border />

    As well as controls to remove the ClickPipe and display a summary of the ingest job.

    <Image img="/images/integrations/data-ingestion/clickpipes/cp_overview.png" alt="View overview" size="lg" border />

    **Congratulations!** you have successfully set up your first ClickPipe.
    If this is a ClickPipe configure for continuous ingestion, it will be continuously running, ingesting data in real-time from your remote data source.
    Otherwise, it will ingest the batch and complete.
  </Step>
</Steps>
