Amazon web services 可能通过列表<;S3Target>;作为云形成的输入?
我在cloudformation中定义了一个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
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
。不过,我不确定在“空目标”的情况下这将如何工作。