-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Cloudfront cache invalidation after each promotion #4262
Comments
All the S3 upload happens via jenkins. Found an inbuilt cloudfront invalidation for AWS jenkins plugin https://plugins.jenkins.io/pipeline-aws/#plugin-content-cfinvalidate |
What caches are we invalidating? It feels like most things should have a permanent URI that doesn't have files changing underneath. The only one would be for the index file in distributions that handles the redirect to latest? |
The redirect to |
The invalidation here is mainly on the metadata files for YUM and APT repo, as part of the end call of https://build.ci.opensearch.org/job/distribution-promote-repos/. Maybe this too: https://build.ci.opensearch.org/job/publish-opensearch-min-snapshots/ |
Maybe we can add We will need to do AWS CLI to retrieve the CloudFront Distribution Id first, maybe something like this ? Do we expect to have more than one CloudFront distribution created on this CI account? |
In our case we can just save the id in secret manager as it is fixed. |
@gaiksaya and @peterzhuamazon can we close this? |
We should, it has already been resolve in this PR: Thanks. |
Add Cloudfront cache invalidation after each promotion.
We are currently manually invalidate the caches, need a mechanism to do so after running promote-repos.
Thanks.
Acceptance Criteria:
The text was updated successfully, but these errors were encountered: