我正在尝试通过云形成自动创建应用程序流。我在源中有多个字段(130+)并且我无法手动映射它。从 UI 中,我可以直接选择多个列,但从 cloudformation 中我必须指定,因此寻找是否有任何选项可以自动从源中获取所有列。
AWSTemplateFormatVersion: "2010-09-09"
Metadata:
Generator: "Automation"
Description: ""
Parameters:
snowusername:
Type: String
MaxLength: 128
snowpassword:
Type: String
MaxLength: 128
ServicenowUrl:
Type: String
MaxLength: 180
Resources:
AppFlowFlowTest:
Type: "AWS::AppFlow::Flow"
Properties:
FlowName: "IMGroupTest"
Description: "Servicenow"
SourceFlowConfig:
ConnectorType: "Servicenow"
ConnectorProfileName: !Ref AppFlowConnectorProfile
SourceConnectorProperties:
ServiceNow:
Object: "business_service_group"
DestinationFlowConfigList:
-
ConnectorType: "S3"
DestinationConnectorProperties:
S3:
BucketName: "raw-data
BucketPrefix: "servicenow/appflow"
S3OutputFormatConfig:
FileType: "PARQUET"
PrefixConfig:
PrefixType: "FILENAME"
AggregationConfig:
AggregationType: "None"
TriggerConfig:
TriggerType: "OnDemand"
Tasks:
-
SourceFields:
- "id"
- "site_name"
.
.
.
.
Run Code Online (Sandbox Code Playgroud)