# Connect to a Glue Metastore

1. To connect to your AWS Glue catalog, open your workspace and click on the <img src="https://3484040590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeVBYKZm1xFKFFVzS0lRJ%2Fuploads%2FhdxCizLd3j5W07FgyHUC%2Fcatalog-active.png?alt=media&#x26;token=904bcf50-3e3b-49b0-83b6-be860eef8e05" 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](https://docs.e6data.com/product-documentation/~/revisions/W5MExJCuvHiG1ioEcgOy/catalogs/create-catalogs/cross-account-catalog-access/configure-cross-account-catalog-to-access-aws-glue), 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.](https://docs.e6data.com/product-documentation/~/revisions/W5MExJCuvHiG1ioEcgOy/error-codes/catalog-errors)

<figure><img src="https://3484040590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeVBYKZm1xFKFFVzS0lRJ%2Fuploads%2F2z6wIli1pCf4mK0JHy6P%2FScreenshot%202023-12-22%20at%201.53.29%20PM.png?alt=media&#x26;token=e0c4869e-e2a6-48c4-9615-6facd510141a" alt="" width="563"><figcaption><p>Glue Catalog in Cloud Prem Workspace</p></figcaption></figure>

<figure><img src="https://3484040590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeVBYKZm1xFKFFVzS0lRJ%2Fuploads%2FPirYF11WnLLIFACGH2DC%2FScreenshot%202024-08-30%20at%204.24.42%20PM.png?alt=media&#x26;token=57403d32-8895-4f7a-9d1b-70e5bbc5b8b4" alt=""><figcaption><p>Glue Catalog in Serverless Workspace</p></figcaption></figure>
