如何通过cloudformation为胶水爬虫设置“从表继承模式”?

Che*_*rry 5 amazon-web-services aws-cloudformation aws-glue

Schema change policyawsgluecrawler的web colsole中的部分包含3个点,而cloudformation部分模板仅定义2个点。有没有办法从cloudformation模板设置“从表继承架构”参数?

Cloudformation 规范与 Web 控制台

Sto*_*tof 2

您可以将爬网程序配置选项设置为InheritFromTableUpdate all new and existing partitions with metadata from the table此选项在 AWS Glue 控制台上命名。

设置此选项后,分区会从其父表继承元数据属性,例如分类、输入格式、输出格式、serde 信息和架构。父表属性的任何更改都会传播到其分区。当在现有爬网程序上设置此配置选项时,现有分区将在下次爬网程序运行时更新以匹配其父表的属性。

来源:Glue-CreateCrawler-request-Configuration