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 build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits 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.