【问题标题】:What is the correct AWS::Glue::Job Connections property structure?什么是正确的 AWS::Glue::Job Connections 属性结构?
【发布时间】:2020-03-30 02:06:55
【问题描述】:

在我尝试了几种 template.json 变体后,我仍然在 AWS Cloudformation 控制台中收到以下错误:

属性验证失败:[属性值 {/Connections} 确实 不匹配类型 {Object}]

【问题讨论】:

    标签: amazon-web-services connection amazon-cloudformation jobs aws-glue


    【解决方案1】:

    answer given by viethor 是正确的。但是,为了让初学者更清楚,下面是进一步的细节:

    Syntax for CloudFormation Glue Job Connections

    JSON 示例:

    "Connections": {
               "Connections": [
                     "YourConnectionName"
                  ]
             }
    

    YAML 示例:

    Connections:
        Connections:
             - YourConnectionName
    

    【讨论】:

      【解决方案2】:

      在python中通过boto3调试后

      glue.get_job(JobName='your job')

      我们发现正确的配置是:

            Connections:
              Connections: 
                - 'YOUR_CONNECTION' 
      

      【讨论】:

      • 做成这样的可能是什么原因?为什么我会有连接列表而里面有字符串列表?
      • 在概念上 Glue 服务非常简洁,但从 UI 和 API 设计的角度来看,它的实现非常糟糕
      猜你喜欢
      • 2018-12-29
      • 2019-12-25
      • 2020-05-29
      • 1970-01-01
      • 2018-12-19
      • 1970-01-01
      • 2021-01-07
      • 2018-03-24
      • 1970-01-01
      相关资源
      最近更新 更多