

# Athena와 AWS 서비스 통합
<a name="athena-aws-service-integrations"></a>

Athena를 사용하여 이 섹션에 나열된 AWS 서비스에서 데이터를 쿼리할 수 있습니다. 각 서비스에서 지원하는 리전을 확인하려면 *Amazon Web Services 일반 참조*의 [Regions and endpoints](https://docs.aws.amazon.com/general/latest/gr/rande.html)를 참조하세요.

**Athena와 통합된 AWS 서비스**
+ [CloudFormation](#integ-ate-cfn)
+ [Amazon CloudFront](#integ-ate-cf)
+ [AWS CloudTrail](#integ-ate-ct)
+ [Amazon DataZone](#integ-ate-dz)
+ [Elastic Load Balancing](#integ-ate-eb)
+ [Amazon EMR Studio](#integ-ate-emr-studio)
+ [AWS Glue Data Catalog](#integ-ate-gc)
+ [AWS Identity and Access Management(IAM)](#integ-ate-iam)
+ [Amazon Quick](#integ-ate-qs)
+ [Amazon S3 Inventory](#integ-ate-s3)
+ [AWS Step Functions](#integ-ate-sf)
+ [AWS Systems Manager 인벤토리](#integ-ate-sys)
+ [Amazon Virtual Private Cloud](#integ-ate-vpc)

각 통합에 대한 자세한 내용은 다음 단원을 참조하세요.

**CloudFormation**    
*용량 예약*  
참조 주제: *AWS CloudFormation 사용 설명서*의 [AWS::Athena::CapacityReservation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-capacityreservation.html)  
제공된 이름 및 요청된 데이터 처리 장치 수를 사용하여 용량 예약을 지정합니다. 자세한 내용은 *Amazon Athena 사용 설명서*의 [쿼리 처리 용량 관리](capacity-management.md) 섹션 및 *Amazon Athena API 참조*의 [CreateCapacityReservation](https://docs.aws.amazon.com/athena/latest/APIReference/API_CreateCapacityReservation.html)을 참조하세요.  
*데이터 카탈로그*  
참조 주제: *AWS CloudFormation 사용 설명서*의 [AWS::Athena::DataCatalog](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-datacatalog.html)  
이름, 설명, 유형, 파라미터 및 태그를 포함하여 Athena 데이터 카탈로그를 지정합니다. 자세한 내용은 *Amazon Athena 사용 설명서*의 [Athena의 테이블, 데이터베이스, 데이터 카탈로그 이해](understanding-tables-databases-and-the-data-catalog.md) 섹션 및 *Amazon Athena API 참조*의 [CreateDataCatalog](https://docs.aws.amazon.com/athena/latest/APIReference/API_CreateDataCatalog.html)를 참조하세요.  
*명명된 쿼리*  
참조 주제: *AWS CloudFormation 사용 설명서*의 [AWS::Athena::NamedQuery](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-namedquery.html)  
CloudFormation을(를) 사용하여 명명된 쿼리를 생성하고 Athena에서 실행할 수 있습니다. 명명된 쿼리를 사용하면 쿼리 이름을 쿼리에 매핑한 다음 Athena 콘솔에서 저장된 쿼리로 이를 실행할 수 있습니다. 자세한 내용은 *Amazon Athena 사용 설명서*의 [저장된 쿼리 사용](saved-queries.md) 섹션 및 *Amazon Athena API 참조*의 [CreateNamedQuery](https://docs.aws.amazon.com/athena/latest/APIReference/API_CreateNamedQuery.html)를 참조하세요.  
*준비된 문*  
참조 주제: *AWS CloudFormation 사용 설명서*의 [AWS::Athena::PreparedStatement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-preparedstatement.html)  
Athena에서 SQL 쿼리와 함께 사용할 준비된 문을 지정합니다. 준비된 문 에는 실행 시 값이 제공되는 파라미터 자리 표시자가 포함됩니다. 자세한 내용은 *Amazon Athena 사용 설명서*의 [파라미터화된 쿼리 사용](querying-with-prepared-statements.md) 섹션 및 *Amazon Athena API 참조*의 [CreatePreparedStatement](https://docs.aws.amazon.com/athena/latest/APIReference/API_CreatePreparedStatement.html)를 참조하세요.  
*작업 그룹*  
참조 주제: *CloudFormation 사용 설명서*의 [AWS::Athena::WorkGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-athena-workgroup.html)  
AWS CloudFormation을(를) 사용하여 Athena 작업 그룹을 지정합니다. Athena 작업 그룹을 사용하여 사용자 또는 사용자 그룹에 대한 쿼리를 동일한 계정의 다른 쿼리와 분리합니다. 자세한 내용은 *Amazon Athena API 참조*에서 *Amazon Athena 사용 설명서* 및 [CreateWorkGroup](https://docs.aws.amazon.com/athena/latest/APIReference/API_CreateWorkGroup.html)의 [작업 그룹을 사용하여 쿼리 액세스 및 비용 제어](workgroups-manage-queries-control-costs.md)를 참조하세요.

**Amazon CloudFront**  
참조 항목: [Amazon CloudFront 로그 쿼리](cloudfront-logs.md)  
Athena를 사용하여 Amazon CloudFront 로그에 쿼리합니다. CloudFront 사용 방법에 대한 자세한 내용은 [Amazon CloudFront 개발자 안내서](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/)를 참조하세요.

**AWS CloudTrail**  
참조 항목: [AWS CloudTrail 로그 쿼리](cloudtrail-logs.md)  
CloudTrail 로그와 함께 Athena를 사용하면 AWS 서비스 활동에 대한 분석 기능을 확실하게 향상시킬 수 있습니다. 예를 들어 쿼리를 사용하여 트렌드를 식별하고 소스 IP 주소나 사용자 등의 속성별로 활동을 추가로 격리할 수 있습니다. CloudTrail 콘솔에서 직접 로그를 쿼리할 수 있도록 테이블을 자동 생성하고 이러한 테이블을 사용하여 Athena에서 쿼리를 실행할 수 있습니다. 자세한 내용은 [CloudTrail 콘솔을 사용하여 CloudTrail 로그용 Athena 테이블 생성](create-cloudtrail-table-ct.md) 섹션을 참조하세요.

**Amazon DataZone**  
참조 항목: [Athena에서 Amazon DataZone 사용](datazone-using.md)  
[Amazon DataZone](https://aws.amazon.com/datazone)을 사용하여 조직 경계를 넘어 대규모로 데이터를 공유, 검색 및 발견합니다. DataZone은 Athena, AWS Glue 및 AWS Lake Formation과 같은 AWS 분석 서비스 전반의 경험을 단순화합니다. 다양한 데이터 소스에 대량의 데이터가 있는 경우 Amazon DataZone을 사용하여 사람, 데이터 및 도구의 그룹화를 기반으로 비즈니스 사용 사례를 구축할 수 있습니다.  
Athena에서는 쿼리 편집기를 사용하여 DataZone 환경에 액세스하고 쿼리할 수 있습니다. 자세한 내용은 [Athena에서 Amazon DataZone 사용](datazone-using.md) 섹션을 참조하세요.

**Elastic Load Balancing**  
참조 항목: [Application Load Balancer 로그 쿼리](application-load-balancer-logs.md)  
Application Load Balancer 로그를 쿼리하면 Elastic Load Balancing 인스턴스 및 백엔드 애플리케이션과 주고 받는 트래픽, 지연 시간 및 바이트의 소스를 볼 수 있습니다. 자세한 내용은 [Application Load Balancer 로그 쿼리](application-load-balancer-logs.md) 섹션을 참조하세요.  
참조 항목: [Classic Load Balancer 로그 쿼리](elasticloadbalancer-classic-logs.md)  
Classic Load Balancer 로그를 쿼리하여 Elastic Load Balancing 인스턴스 및 백엔드 애플리케이션과의 송수신 트래픽 패턴을 분석하고 이해합니다. 트래픽 소스, 지연 시간 및 전송된 바이트를 확인할 수 있습니다. 자세한 내용은 [Classic Load Balancer 로그 쿼리](elasticloadbalancer-classic-logs.md) 섹션을 참조하세요.

**Amazon EMR Studio**  
참조 주제: [Use the Amazon Athena SQL editor in EMR Studio](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-studio-athena.html)   
EMR Studio에서 Athena를 사용하여 대화형 쿼리를 개발하고 실행할 수 있습니다. 이를 통해 Spark, Scala 및 기타 워크로드에 사용하는 것과 동일한 Amazon EMR 인터페이스에서 Athena의 SQL 분석에 EMR Studio를 사용할 수 있습니다. EMR Studio에 Athena 통합을 통해 다음 작업을 수행할 수 있습니다.  
+ Athena SQL 쿼리 수행
+ 쿼리 결과 보기
+ 쿼리 기록 보기
+ 저장된 쿼리 보기
+ 파라미터화된 쿼리 수행
+ 데이터 카탈로그의 데이터베이스, 테이블 및 뷰 보기
Amazon EMR Studio에서는 다음 Athena 기능을 사용할 수 없습니다.  
+ Athena 작업 그룹, 데이터 소스 또는 용량 예약 생성 또는 업데이트와 같은 관리 기능
+ Athena for Spark 또는 Spark 노트북
+ DataZone 통합
+ Step Functions
Athena와의 EMR Studio 통합은 EMR Studio 및 Athena를 사용할 수 있는 모든 AWS 리전에서 사용할 수 있습니다. *EMR Studio에서 Athena를 사용하는 방법에 대한 자세한 내용은 *Amazon EMR 관리 안내서의 [Use the Amazon Athena SQL editor in EMR Studio](https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-studio-athena.html)를 참조하십시오.

**AWS Glue Data Catalog**  
참조 항목: [AWS Glue Data Catalog을 사용하여 데이터에 연결](data-sources-glue.md)   
Athena는 Amazon S3에서 데이터에 대한 지속적 메타데이터 스토어를 제공하는 AWS Glue Data Catalog와 통합됩니다. 이렇게 하면 Amazon Web Services 계정 전체에서 사용할 수 있는 중앙 메타데이터 스토어를 기반으로 Athena에서 테이블과 쿼리 데이터를 생성하고 AWS Glue의 ETL 및 데이터 검색 기능을 통합할 수 있습니다. 자세한 내용은 *AWS Glue 개발자 안내서*의 [AWS Glue이란 무엇입니까?](https://docs.aws.amazon.com/glue/latest/dg/what-is-glue.html) 및 [AWS Glue Data Catalog을 사용하여 데이터에 연결](data-sources-glue.md) 단원을 참조하세요.

**AWS Identity and Access Management(IAM)**  
참조 항목: [Amazon Athena에 사용되는 작업](https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazonathena.html)  
IAM 권한 정책에서 Athena API 작업을 사용할 수 있습니다. 자세한 내용은 [Amazon Athena에 사용되는 작업](https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazonathena.html) 및 [Athena의 자격 증명 및 액세스 관리](security-iam-athena.md) 단원을 참조하세요.

**Amazon Quick**  
참조 항목: [ODBC 및 JDBC 드라이버로 Amazon Athena에 연결](athena-bi-tools-jdbc-odbc.md)  
Athena는 간편한 데이터 시각화를 위해 Amazon Quick과 통합되었습니다. Athena를 사용하여 보고서를 생성하거나 JDBC 또는 ODBC 드라이버를 통해 연결된 비즈니스 인텔리전스 도구 또는 SQL 클라이언트로 데이터를 탐색할 수 있습니다. Quick에 대한 자세한 내용은 *Amazon Quick 사용 설명서*의 [Amazon Quick이란 무엇입니까?](https://docs.aws.amazon.com/quicksight/latest/user/welcome.html)를 참조하세요. Athena와 함께 JDBC 및 ODBC를 사용하는 방법에 대한 내용은 [ODBC 및 JDBC 드라이버로 Amazon Athena에 연결](athena-bi-tools-jdbc-odbc.md)을 참조하세요.

**Amazon S3 Inventory**  
참조 항목: *Amazon Simple Storage Service 개발자 가이드*에서 [Athena로 인벤토리 쿼리](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html#storage-inventory-athena-query)를 참조하세요.  
Amazon Athena를 사용하여 표준 SQL로 Amazon S3 Inventory를 쿼리할 수 있습니다. Amazon S3 Inventory를 사용하면 비즈니스, 규정 준수 및 규제 요건에 관하여 객체의 복제 및 암호화 상태를 감사하고 보고할 수 있습니다. 자세한 내용은 *Amazon Simple Storage Service 사용 설명서*의 [Amazon S3 Inventory](https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html)를 참조하세요.

**AWS Step Functions**  
참조 항목: *AWS Step Functions 개발자 가이드*의 [Step Functions로 Athena 호출](https://docs.aws.amazon.com/step-functions/latest/dg/connect-athena.html)  
AWS Step Functions를 사용하여 Athena를 호출합니다. AWS Step Functions는 [Amazon States Language](https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html)를 사용하여 AWS 서비스를 직접 제어할 수 있습니다. Athena와 함께 Step Functions를 사용하면 쿼리 실행을 시작 및 중지하거나, 쿼리 결과를 가져오거나, 임시 또는 예약된 데이터 쿼리를 실행하거나, Amazon S3의 데이터 레이크에서 결과를 검색할 수 있습니다. Step Functions 역할에 Athena를 사용할 수 있는 권한이 있어야 합니다. 자세한 내용은 [AWS Step Functions 개발자 안내서](https://docs.aws.amazon.com/step-functions/latest/dg/)를 참조하세요.  
**비디오: AWS Step Functions를 사용한 Amazon Athena 쿼리 오케스트레이션**  
다음 동영상에서는 Amazon Athena를 사용하는 방법과, AWS Step Functions를 사용하여 정기적으로 예약된 Athena 쿼리를 실행하고 해당 보고서를 생성하는 방법을 보여줍니다.

[![AWS Videos](http://img.youtube.com/vi/rRr3QfIMTBo/0.jpg)](http://www.youtube.com/watch?v=rRr3QfIMTBo)

AWS Glue DataBrew, Athena 및 Amazon Quick의 오케스트레이션을 위해 Step Functions 및 Amazon EventBridge를 사용하는 예제는 AWS Big Data Blog의 [Orchestrating an AWS Glue DataBrew job and Amazon Athena query with AWS Step Functions](https://aws.amazon.com/blogs/big-data/orchestrating-an-aws-glue-databrew-job-and-amazon-athena-query-with-aws-step-functions/)를 참조하세요.

**AWS Systems Manager 인벤토리**  
참조 항목: *AWS Systems Manager 사용 설명서*의 [여러 리전 및 계정에서 인벤토리 데이터 쿼리](https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-inventory-query.html)  
AWS Systems Manager 인벤토리가 Amazon Athena와 통합되어 여러 AWS 리전 및 계정에서 인벤토리 데이터를 쿼리하는 데 도움이 됩니다. 자세한 내용은 [AWS Systems Manager 사용 설명서](https://docs.aws.amazon.com/systems-manager/latest/userguide/)를 참조하세요.

**Amazon Virtual Private Cloud**  
참조 항목: [Amazon VPC 흐름 로그 쿼리](vpc-flow-logs.md)  
Amazon Virtual Private Cloud 흐름 로그는 VPC의 네트워크 인터페이스에서 송수신되는 IP 트래픽에 대한 정보를 수집합니다. Athena에서 로그를 쿼리하여 네트워크 트래픽 패턴을 조사하고 Amazon VPC 네트워크에서 위협 및 위험을 식별하세요. Amazon VPC에 대한 자세한 내용은 [Amazon VPC 사용 설명서](https://docs.aws.amazon.com/vpc/latest/userguide/)를 참조하세요.