PyAthena KMS加密

时间:2019-02-26 08:12:01

标签: python amazon-web-services amazon-athena aws-kms pyathena

我正在使用PyAthena-1.4.6查询雅典娜。

connection = connect(
    s3_staging_dir='s3://' + athena_results_s3_bucket + '/athena_results',
    region_name=region,
    encryption_option='SSE-KMS',
    kms_key=kms_key
)
cursor = connection.cursor()
cursor.execute(sql_query)

我能够查询数据,但是s3 staging_dir中的数据未加密。我尝试了encryption_opion的所有可能值。我找不到与此相关的任何文档。

0 个答案:

没有答案