Create a bucket in s3 where the file gets downloaded
Add the bucket name to Resource "arn:aws:s3:::<bucket-name>/*"
section inpolicies/s3-bucket-access.json
- Make sure the
bucketName
variable has the name of the bucket configured in the above steps - Run
npm install
- Configure the name of your function in
package.json
in thestart
command - Run
npm start
to create your lambda function - Run
npm run schedule
to attach the schedule event trigger
- Run
npm run deploy
to update your function after making changes