Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 可能通过列表<;S3Target>;作为云形成的输入?_Amazon Web Services_Amazon S3_Amazon Cloudformation_Aws Glue - Fatal编程技术网

Amazon web services 可能通过列表<;S3Target>;作为云形成的输入?

Amazon web services 可能通过列表<;S3Target>;作为云形成的输入?,amazon-web-services,amazon-s3,amazon-cloudformation,aws-glue,Amazon Web Services,Amazon S3,Amazon Cloudformation,Aws Glue,我在cloudformation中定义了一个AWS::Glue::Crawler资源,如下所示: # ... Parameters: pS3Targets: Type: List<AWS::Glue::Crawler::S3Target> # <-- I want this. This does not appear to be supported Resources: # ... rCrawler: Type: AWS::Glue::Craw

我在cloudformation中定义了一个
AWS::Glue::Crawler
资源,如下所示:

# ...

Parameters:
  pS3Targets:
    Type: List<AWS::Glue::Crawler::S3Target>  # <-- I want this. This does not appear to be supported

Resources:

# ...

  rCrawler:
    Type: AWS::Glue::Crawler
    Properties:
      Name: "my_crawler"
      DatabaseName: "my_db"
      Role: !GetAtt myRole.Arn
      Schedule:
        ScheduleExpression: !Ref pCrawlerSchedule
      Targets:
        # TODO: parameterize the List of S3Targets
        S3Targets:
          - Path: !Sub "s3://my-bucket/table1/"
          - Path: !Sub "s3://my-bucket/table2/"
          - Path: !Sub "s3://my-bucket/table3/"
          - Path: !Sub "s3://my-bucket/tableN/"
#。。。
参数:
PS3目标:
类型:列表类型)添加到cloudformation模板。这是可能的吗?

不幸的是,只有您可以使用它来转换模板。您还可以使用带有有限数量目标的组合
Fn::If
Fn::Select
。不过,我不确定如何处理“空目标”。不幸的是,只有您可以使用该选项来转换模板。您还可以使用带有有限数量目标的组合
Fn::If
Fn::Select
。不过,我不确定在“空目标”的情况下这将如何工作。