设置完EventBridge后,S3上传对象事件仍无法触发StepFunction。
但是,我尝试将事件规则更改为EC2状态。它可以正常工作!!!
我还尝试将规则更改为S3的所有事件,但仍然无法工作。
亚马逊EventBridge:
事件模式:
{
"source": ["aws.s3"],
"detail-type": ["AWS API Call via CloudTrail"],
"detail": {
"eventSource": ["s3.amazonaws.com"],
"eventName": ["PutObject"],
"requestParameters": {
"bucketName": ["MY_BUCKETNAME"]
}
}
目标:
Type:Step Functions state machine
ARN:arn:aws:states:us-east-1:xxxxxxx:stateMachine:MY_FUNCTION_NAME
Reference:https://docs.aws.amazon.com/step-functions/latest/dg/tutorial-cloudwatch-events-s3.html