cds-snc / notification-planning-core

Project planning for GC Notify Core Team
0 stars 0 forks source link

Trigger Cloudfront Cache Invalidation when deploying s3 assets #247

Open ben851 opened 6 months ago

ben851 commented 6 months ago

Description

As a developer of notify, I would like our system to automatically invalidate cloudfront cache when we static assets, so that there are no manual steps in infrastructure deployments, and we can be sure that our assets are updated.

WHY are we building?

When deploying assets, in order for them to take effect immediately in an environment, we must first invalidate the cache. If we don't do this, it will take several hours before our changes take effect in production, which could cause issues.

WHAT are we building?

Build a script that is executed post deployment that invalidates cache.

VALUE created by our solution

We will be able to ensure that our latest changes are always in sync.

Acceptance Criteria

QA Steps