title: Copy files from S3 bucket to EC2 Windows Instance using Lambda
body: <p>I have uploaded design files (like images/css/js) to an S3 bucket and now I need to copy such files from the S3 bucket to an EC2 Windows instance whenever they are uploaded to/deleted from the bucket. I have created a Lambda function with a Powershell script but I don't see any way to access the EC2 instance and copy the files there. I tried the following script but I am seeing an error like <code>Cannot find drive. A drive with the name 'C' does not exist</code></p>
  
  <pre><code>Start-EC2Instance -InstanceIds i-********
  foreach ($i in Get-ChildItem -Path "C:\Windows")
  {
  Write-Host $i.FullName  
  
  }
  </code></pre>
  
  <p>Can someone please help on this.</p>