Skip to content
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 autoInvalidate prop to the cloudfrontInvalidate #21

Merged
merged 3 commits into from
Jan 18, 2021

Conversation

mihaerzen
Copy link
Contributor

I've added this functionality as our CI deployment script has the following steps:

  1. Deploy the stack using serverless
  2. Push static files to s3 bucket
  3. Invalidate CloudFront

This PR adds the ability to avoid invalidating CloudFront on the first step, preventing double invalidation.

so we can conditionally disable the after deployment invalidation.
@aghadiry aghadiry merged commit 5c0b5e9 into aghadiry:master Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants