【问题标题】:AWS CFT Glue add sampling in DynamoDB TargetAWS CFT Glue 在 DynamoDB 目标中添加采样
【发布时间】:2022-10-06 23:28:05
【问题描述】:

到目前为止,我在 Cloud Formation Template 中将 Glue Crawler 定义为:

Type: AWS::Glue::Crawler
Properties:
  Name: CrawlerName
  DatabaseName: DBName
  Targets:
    DynamoDBTargets:
      - Path: DynamoDBTableName

如何打开 UI 控制台中可用的 enable sampling 选项,但我在 CFT 的 AWS 文档中没有看到它

    标签: amazon-web-services amazon-cloudformation aws-glue sampling glue-crawler


    【解决方案1】:

    我自己没有尝试过,但这可能会根据用于胶水的 aws api 的结构而起作用

    Type: AWS::Glue::Crawler
    Properties:
      Name: CrawlerName
      DatabaseName: DBName
      Targets:
        DynamoDBTargets:
          - Path: DynamoDBTableName
          - ScanAll: False
    

    【讨论】:

      【解决方案2】:

      鉴于默认启用采样,您不必向 CFN 模板添加任何内容。我确实尝试过“ScanAll:True”来尝试禁用采样,但该命令似乎不受支持。

      属性验证失败:[在 {/Targets/DynamoDBTargets/1} 中遇到不受支持的属性:[ScanAll]]

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-04-10
        • 1970-01-01
        • 2017-05-23
        • 1970-01-01
        相关资源
        最近更新 更多