question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Give configuration flag to allow `amplify publish` to invalidate CDN if flag is set

See original GitHub issue

Is 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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
yuthcommented, Dec 4, 2018

You can invalidate the cache by passing -c flag to publish command. Its documented in hosting workflow

0reactions
github-actions[bot]commented, May 26, 2021

This 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found