This is a project to upload and append audio files from YouTube to a podcast stored in AWS S3. To set up:
- Set up aws-cli and install dependencies.
- Create an S3 bucket, copy pod.rss into bucket (/lib/pod), and add details to
/lib/config.ts - Set up AWS pinpoint application, and add applicationId and originationNumber to config.ts
- To test, run
npx ts-node streamAudio.ts
- If deploying to AWS, add FFMPEG binary layer from here.
- To deploy, run
cdk deploy
npm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template
FFMPEG Runtime: https://github.com/serverlesspub/ffmpeg-aws-lambda-layer
- Add automation of binary layer download during deploy.
- Add cdk to generate bucket, pod.rss, and pinpoint application / resources.