Using Amazon DataZone in Athena - Amazon Athena
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Using Amazon DataZone in Athena

You can use Amazon DataZone to share, search, and discover data at scale across organizational boundaries. DataZone simplifies your experience across Amazon analytics services like Athena, Amazon Glue, and Amazon Lake Formation. For example, if you have petabytes of data in different data sources, you can use Amazon DataZone to build business use case based groupings of people, data and tools. For more information, see What is Amazon DataZone?.

In Athena, you can use the query editor to access and query DataZone environments. A DataZone environment specifies a DataZone project and domain combination. When you use a DataZone environment from the Athena console, you assume the IAM role of the DataZone environment, and you see only the databases and tables that belong to that environment. Permissions are determined by the roles that you specify in DataZone.

In Athena, you can use the DataZone environment selector on the query editor page to choose a DataZone environment.

To open a DataZone environment in Athena
  1. Open the Athena console at https://console.amazonaws.cn/athena/.

  2. In the upper right of the Athena console, next to Workgroup, choose DataZone environment.

    Note

    The DataZone environment option is present only when you have one or more domains available in DataZone.

    Choose DataZone environment.
  3. Use the DataZone environment selector to choose a DataZone environment.

    Choose a DataZone environment
  4. In the Switch to DataZone environment dialog box, verify that the environment is the one that you want, and then choose Switch to DataZone environment.

    Verify the change to a DataZone environment.

For more information about getting started with DataZone and Athena, see the Getting started tutorial in the Amazon DataZone User Guide.