

# Connecting to an existing Amazon Athena resource
<a name="adding-a-existing-athena-connection"></a>

After you have gained access to an Amazon Athena workgroup, you can add a connection to the compute resource in the Amazon SageMaker Unified Studio console. Complete the following steps to add a Amazon Athena workgroup to the project space:

1. Navigate to the **Compute** section of your project in Amazon SageMaker Unified Studio.

1. Select the **SQL analytics** tab.

1. Choose **Add compute**.

1. Choose **Connect to existing compute resources**, then choose **Next**.

1. Select **Amazon Athena workgroup**, then choose **Next**.

1. Under **Connection properties**, provide the Amazon Athena workgroup ARN you want to add. If the compute resource is in the same account as your Amazon SageMaker Unified Studio project, you can select the compute resource from a dropdown menu. For more information, see [Gaining access to Amazon Athena resources](compute-prerequisite-athena.md).

1. If you have access role, provide access role credentials. For project role, you don't have to provide any credentials.

1. Under **Name**, enter the name of the Amazon Athena workgroup you want to add.

1. Under **Description**, provide a description of the compute resource.

1. Choose **Add compute**. The Amazon SageMaker Unified Studio project Compute and Data pages then display information for that resource.