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

Suggestion: Call Invalidate CloudFront on deploy #1

Open
chanan opened this issue Jan 9, 2022 · 1 comment
Open

Suggestion: Call Invalidate CloudFront on deploy #1

chanan opened this issue Jan 9, 2022 · 1 comment

Comments

@chanan
Copy link

chanan commented Jan 9, 2022

Awesome work, thanks for this.

I see that on deploy the changes aren't visible right away. Looking at getlift/lift, I see that on deploy they call the following: https://github.com/getlift/lift/blob/master/src/classes/aws.ts#L37

I am unsure how to call a function on deploy, is that possible only because life is serverless plugin? Thought you might have an idea.

@shamsup
Copy link
Owner

shamsup commented Jan 10, 2022

I personally do it in a separate command that runs after deploying and is not tied into the serverless lifecycle. I just use the AWS CLI to do an invalidation.

That being said, a custom plugin can do the same thing and be tied into the serverless lifecycle. I haven't invested the time to create it myself, though.

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

No branches or pull requests

2 participants