Migrate CDN from CloudFront to Fastly
User Story
Currently, Micromasters uses hand constructed CloudFront distributions. Building these is error prone and high risk.
Description/Context
We should move Micromasters to use Pulumi managed Fast.ly as its CDN like the right of our projects. This will reduce operational risk and technical debt.
Acceptance Criteria
- [ ] All micromasters environments are fronted by Pulumi managed Fast.ly CDN
Is the dependency on CloudFront hard-coded into the MicroMaster app anywhere? Does migrating from Cloudfront to Fastly require any code changes in MicroMasters?
At a minimum, we should be removing the entry from pillar https://github.com/mitodl/salt-ops/blob/main/pillar/heroku/micromasters.sls#L179. As far as the micromasters codebase, without the value in the config, this code can be removed, but it's not a blocker https://github.com/mitodl/micromasters/blob/master/micromasters/settings.py#L299-L303
Looking at its usage in the code it seems that we can remove the setting from Salt/Heroku and then set up Fastly in front of the app and no further code changes are required.