title: Cloud-formation : Provided Arn is not in correct format
body: <p>I am trying to trigger a AWS Task-schedular from CLoudwatch every 2 hours which will perform some of operation . </p>
  
  <p>Below is my Cloudformation template</p>
  
  <pre><code>  TaskSchedule:
      Type: "AWS::Events::Rule"
      DeletionPolicy: Delete
      Properties:
        Description: &gt;
          Run every two hours.
        ScheduleExpression:  !Ref TaskRate #rate(1 day)  #cron (15 10 * * ? *) #(0 0 * * *) #!Ref LambdaRate
        State: ENABLED
        #Targets:
        #  - Arn: !Ref ecsCluster.Arn     #!Sub ${TaskDefinitionDaily.Arn}
        #    Id: TaskSchedule
        #    EcsParameters:
        #      TaskDefinitionArn: !Ref TaskDefinitionDaily
        #      TaskCount: 1
        #      LaunchType: 'FARGATE'
        #      PlatformVersion: 'LATEST'
        Targets:
          - Id: 'ECSTarget'
            Arn: !Ref ecsCluster.Arn     #!Sub ${TaskDefinitionDaily.Arn}
            EcsParameters:
              TaskCount: 1
              TaskDefinitionArn: !Ref 'TaskDefinitionDaily'
  </code></pre>
  
  <p>Now when I am trying to run the above Cloudformation template I am getting below error . I am new in CFT and don't know what is causing this. </p>
  
  <pre><code>Provided Arn is not in correct format. (Service: AmazonCloudWatchEvents; Status Code: 400; Error Code: ValidationException;
  </code></pre>
  
  <p>Please let me know what might I am doing wrong here.</p>