compiler-explorer / compiler-explorer/infra

Starting/Stopping/Restarting an environment should trigger a cloudfront invalidation

Open
#236 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
434
Forks
429
Avg merge
4d 21h
Merged PRs (30d)
38

Description

Error pages take excessively long to propegate when turning off an environment, and when updating an environment the edge caches could hold onto stale assets.

The invalidation must be performed as the last step in all cases.
We must wait for the first instance to come online or the last instance to go offline before doing the invalidation or it may not be effective.

EX: `aws cloudfront create-invalidation --distribution-id EFCZGUFIBB1UY --paths "/staging*"`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.