【发布时间】:2020-02-07 06:06:56
【问题描述】:
Parameters:
Bucket:
Default: bucket_1
Type: String
AllowedValues:
- bucket_1
- bucket_2
Resources:
StepFunction:
Type: 'AWS::StepFunctions::StateMachine'
Properties:
DefinitionString: |-
{
...
}
RoleArn: ...
StateMachineName: ...
EventRule:
Type: 'AWS::Events::Rule'
Properties:
ScheduleExpression: cron(...)
Targets:
- RoleArn: ...
Arn: !Ref StepFunction
Id: "ScheduleStepFunction"
InputTransformer:
InputPathsMap:
Bucket: !Ref Bucket
InputTemplate: "{\"Bucket\": <Bucket>}"
我正在尝试将名为 Bucket 的输入参数(在 CloudFormation 模板本身中定义为参数)传递给事件规则的 StepFunction 目标。
I get this error: InputPath for target ScheduleStepFunction is invalid.
Note: The optional parameter 'InputPath' has not been provided also.
【问题讨论】:
标签: amazon-web-services amazon-cloudformation pipeline aws-glue aws-step-functions