title: AWS Data Pipeline - Can we re-use the EC2 instance created during 'on-demand' pipeline activation?
body: <p><strong>Question -</strong> </p>
  
  <p>Can I reuse the ec2 resource created during first on-demand run of the data pipeline in subsequent on-demand runs as well?</p>
  
  <p><strong>Description -</strong> </p>
  
  <p>I have configured an 'on-demand' AWS data pipeline which is required to be activated many times during a day ( say 3 times within an hour ).</p>
  
  <p>( I can not go with the cron or timeseries style scheduling since I have to pass different parameters to the pipeline at each execution)</p>
  
  <p>In each on-demand activation, Data pipeline seems to create a new ec2 resource ? Is this the case?</p>
  
  <p>Can I reuse the ec2 resource created during first on-demand run in other subsequent runs as well?</p>
  
  <p>AWS Documentation provides the following information but it's not clear whether that applies to 'on-demand' pipelines as well.</p>
  
  <blockquote>
    <p>AWS Data Pipeline allows you to maximize the efficiency of resources
    by supporting different schedule periods for a resource and an
    associated activity.</p>
    
    <p>For example, consider an activity with a 20-minute schedule period. If
    the activity's resource were also configured for a 20-minute schedule
    period, AWS Data Pipeline would create three instances of the resource
    in an hour and consume triple the resources necessary for the task.</p>
    
    <p>Instead, AWS Data Pipeline lets you configure the resource with a
    different schedule; for example, a one-hour schedule. When paired with
    an activity on a 20-minute schedule, AWS Data Pipeline creates only
    one resource to service all three instances of the activity in an
    hour, thus maximizing usage of the resource.</p>
  </blockquote>