> For the complete documentation index, see [llms.txt](https://docs.e6data.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.e6data.com/product-documentation/catalogs/create-catalogs/glue-metastore/connect-to-a-glue-metastore.md).

# Connect to a Glue Metastore

1. To connect to your AWS Glue catalog, open your workspace and click on the <img src="/files/iYWaSr81fQXxmVoYSnmj" alt="" data-size="line"> button in the sidebar.
2. Start off by giving your catalog a name and select ***Glue*****.**
3. Select the **cloud resource** if you have created a serverless workspace.
4. Select the region your AWS Glue metastore is in.
5. When asked whether the Glue metastore and S3 data source exist in the same AWS Account as the e6data workspace:
   1. If yes, select **Yes** and proceed to step 6.
   2. If not, select **No** and configure [cross-account access](/product-documentation/catalogs/create-catalogs/cross-account-catalog-access/configure-cross-account-catalog-to-access-aws-glue.md), provide the requested details of the target catalog, and proceed to step 6.
6. Click **Validate.** This will test connectivity and then automatically find all the **Glue databases** in the selected region.
7. Choose the Glue databases/schemas you want to run the queries on from your metastore. This selection can be changed later.
8. To enable automatic catalog updates, toggle on the auto-refresh option and set the desired time interval for catalog updates. Remember, you can always adjust this selection and interval later.
9. If you do not require auto-refresh for your catalog, you can proceed to the next step.
10. If all the settings are correct, click on ***Create***.
11. You will be redirected to your catalog listing screen. Once the catalog creation is successful,  the catalog status changes to <mark style="color:green;">**ACTIVE.**</mark>
    * In case the catalog has not been created there will be an error that you can see on hovering over the status bar. We have listed the errors that you can encounter while creating a catalog on the [catalog errors.](/product-documentation/error-codes/catalog-errors.md)

<figure><img src="/files/Xt0ClFTKIvyMchfIswU7" alt="" width="563"><figcaption><p>Glue Catalog in Cloud Prem Workspace</p></figcaption></figure>

<figure><img src="/files/IbcaGCR8fQcqnlETpk6W" alt=""><figcaption><p>Glue Catalog in Serverless Workspace</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.e6data.com/product-documentation/catalogs/create-catalogs/glue-metastore/connect-to-a-glue-metastore.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
