Amazon cloudformation 创建加密雅典娜胶水表

Amazon cloudformation 创建加密雅典娜胶水表,amazon-cloudformation,amazon-athena,aws-glue,Amazon Cloudformation,Amazon Athena,Aws Glue,我有一个CF模板来创建一个从S3CSV文件读取的粘合表 MyTableEncrypted: Type: AWS::Glue::Table Properties: DatabaseName: Ref: MyDatabase CatalogId: Ref: AWS::AccountId TableInput: Name: Fn::Sub: "my-table-encrypted"

我有一个CF模板来创建一个从S3CSV文件读取的粘合表

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
我想将
tblproperty{has_encrypted_data:false}
添加到此表中。如何在CF模板中实现这一点


文档中没有关于加密属性的提示-

向TableInput参数追加
已加密数据

MyTableEncrypted:
    Type: AWS::Glue::Table
    Properties:
      DatabaseName:
        Ref: MyDatabase
      CatalogId:
        Ref: AWS::AccountId
      TableInput:
        Name:
          Fn::Sub: "my-table-encrypted"
        Parameters: { "classification" : "csv", "has_encrypted_data" : "true" }
        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

添加到TableInput参数已加密\u数据

MyTableEncrypted:
    Type: AWS::Glue::Table
    Properties:
      DatabaseName:
        Ref: MyDatabase
      CatalogId:
        Ref: AWS::AccountId
      TableInput:
        Name:
          Fn::Sub: "my-table-encrypted"
        Parameters: { "classification" : "csv", "has_encrypted_data" : "true" }
        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