event of datasync task state change not working

0

I have a datasync task which is triggered by lambda2. This task is used to copy s3 bucket data to on prem smb share. I have an event bridge rule with a pattern to match the task status change event having state as AVAILABLE. If it is AVAILABLE, and event matches, it triggers lambda1 which in turns call lambda2, which finally start the task again. My problem is, this flow works fine once, but when all data are copied and the status comes back to AVAILABLE state, it does not trigger lambda1. I am totally clueless and do not know if running to available state change is even generating any event to match the pattern or not. I have added an additional target as cloudwatch log group but it logs only matched event and hence it does not logs the last AVAILABLE event. What should I do to capture the any event generated by the task to compare my pattern if at all it is not matching. Does aws has option to capture unmatched event for a resource so that i can handle it? Is there any work around to that? please help

1개 답변
0

you can monitor task status with eventbridge. Datasync provides a skd to check the status of task .

describeAgent(params = {}, callback) ⇒ AWS.Request Returns metadata about an DataSync agent, such as its name, endpoint type, and status.

checkout below link ,shoudl be helpful.

https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DataSync.html https://docs.aws.amazon.com/datasync/latest/userguide/events.html

Sachin
답변함 7달 전
profile picture
전문가
검토됨 한 달 전
  • Thanks. It seems the resources in the pattern is not matching with the event generated. Tried everything (content based filtering, wild card etc.) to match the event but nothing seems working.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠