I am creting a cloudformation template. it is creating Database Migration Service Task. I need to do a scheduling of this DMS taks via EventBridge. I've created following resource in CloudFormation:-
DMSStartTaskScheduler:
Type: AWS::Scheduler::Schedule
Properties:
FlexibleTimeWindow:
MaximumWindowInMinutes: 300
Mode: FLEXIBLE
Name: DMSStartTaskRule-dev
ScheduleExpression: cron(30 17 * * ? *)
State: ENABLED
Target:
Arn: "DMS task ARN"
RoleArn: !GetAtt EventBridgeIAMrole.Arn
But Getting below error:-
Invalid request provided: dms is not a supported service for a target. (Service: Scheduler, Status Code: 400,
I tried to create the same Scheduler from Console, there it was working but from Cloudformation template it is giving errors. Can anyone suggest solution of it?