Give configuration flag to allow `amplify publish` to invalidate CDN if flag is set
See original GitHub issueIs your feature request related to a problem? Please describe.
Right now it doesn’t appear that amplify publish
is invalidating the associated CloudFront distribution, which for this particular Amplify site should be entirely invalidated (*
resource) on update (publish).
Describe the solution you’d like
A simple ability to configure amplify publish
to invalidate resources in the associated CloudFront distribution if desired (probably off by default for websites using S3 versioning).
Describe alternatives you’ve considered
Manually invalidating the CloudFront distro every time I amplify publish
, which is tedious.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Hosting - Overview - AWS Amplify Docs
This command walks through the steps to configure the different sections of the resources used in hosting, including S3, CloudFront, and publish ignore....
Read more >AWS Amplify Console supports instant cache invalidation ...
Updating content requires you to invalidate the CDN cache. Invalidating the cache forces edge locations to fetch new content from the origin, ...
Read more >gcloud compute url-maps invalidate-cdn-cache
OPTIONAL FLAGS. --async: Return immediately, without waiting for the operation in progress to complete. --host = HOST: If set, this invalidation will apply ......
Read more >Quickstart
Install Node.js® and NPM if they are not already on your machine. Verify that you are running at ... npm install -g @aws-amplify/cli...
Read more >Amplify Invalid feature flag configuration on build
It seems to be a different version of amplify cli between the aws build image and your machine. Check your version of amplify...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can invalidate the cache by passing
-c
flag topublish
command. Its documented in hosting workflowThis issue has been automatically locked since there hasn’t been any recent activity after it was closed. Please open a new issue for related bugs.
Looking for a help forum? We recommend joining the Amplify Community Discord server
*-help
channels for those types of questions.