Enabling data exploration in Amazon Athena
Data exploration in Amazon Athena is enabled by turning on Continuous Export using the Migration Hub console or an API call from the
AWS CLI. You must turn on data exploration before you can see and start exploring your
discovered data in Amazon Athena.
When you turn on Continuous Export the service-linked role
AWSServiceRoleForApplicationDiscoveryServiceContinuousExport
is
automatically used by your account. For more information about this service-linked role,
see Service-Linked Role Permissions for
Application Discovery Service.
The following instructions show how to enable data exploration in Amazon Athena by using the console and the
AWS CLI.
- Enable with the console
-
Data exploration in Amazon Athena is enabled by Continuous Export implicitly being turned on when you choose "Start
data collection", or click the toggle labeled, "Data exploration in
Amazon Athena" on the Data Collectors page of the Migration Hub
console.
To enable data exploration in Amazon Athena from the console
-
In the navigation pane, choose Data
Collectors.
-
Choose the Agents tab.
-
Choose Start data collection, or if you
already have data collection turned on, click the Data
exploration in Amazon Athena toggle.
-
In the dialog box generated from the previous step, click the
checkbox agreeing to associated costs and choose
Continue or
Enable.
Your agents are now running in "continuous export" mode which will
enable you to see and work with your discovered data in Amazon Athena. The
first time this is enable it may take up to 30 minutes for your data to
appear in Amazon Athena.
- Enable with the AWS CLI
-
Data exploration in Amazon Athena is enabled by Continuous Export explicitly being turned on through an API call
from the AWS CLI. To do this, the AWS CLI must first be installed in your
environment.
To install the AWS CLI and enable data exploration in Amazon Athena
-
Install the AWS CLI for your operating system (Linux, macOS, or
Windows). See the AWS Command Line Interface User Guide for instructions.
-
Open the Command prompt (Windows) or Terminal (Linux or
macOS).
-
Type aws configure
and press Enter.
-
Enter your AWS Access Key Id and AWS Secret Access
Key.
-
Enter us-west-2
for the Default Region
Name.
-
Enter text
for Default Output Format.
-
Type the following command:
aws discovery start-continuous-export
Your agents are now running in "continuous export" mode which will
enable you to see and work with your discovered data in Amazon Athena. The
first time this is enable it may take up to 30 minutes for your data to
appear in Amazon Athena.