【发布时间】:2018-01-27 03:55:07
【问题描述】:
我有一个 CF 模板来创建从 S3 CSV 文件读取的粘合表。
MyTableEncrypted:
Type: AWS::Glue::Table
Properties:
DatabaseName:
Ref: MyDatabase
CatalogId:
Ref: AWS::AccountId
TableInput:
Name:
Fn::Sub: "my-table-encrypted"
Parameters: { "classification" : "csv" }
StorageDescriptor:
Location:
Fn::Sub: "s3://my-encrypted-bucket/"
InputFormat: "org.apache.hadoop.mapred.TextInputFormat"
OutputFormat: "org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat"
SerdeInfo:
Parameters: { "separatorChar" : "\t" }
SerializationLibrary: "org.apache.hadoop.hive.serde2.OpenCSVSerde"
StoredAsSubDirectories: false
Columns:
- Name: first_name
Type: string
- Name: last_name
Type: string
我想将TBLPROPERTIES {has_encrypted_data : false} 添加到此表中。如何在 CF 模板中实现这一点?
文档中没有关于加密属性的提示 - https://docs.aws.amazon.com/glue/latest/webapi/API_StorageDescriptor.html
【问题讨论】:
标签: amazon-cloudformation amazon-athena aws-glue