-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[s3-deployment] Validate leading slash in cloudfront invalidation paths. #9317
Comments
@Gaelan Thanks for this. Any chance you can also attach the specific error that happens? Or a link to a documentation page that explains this behavior? |
|
@Gaelan Cool. Thanks! |
Hey @Gaelan, thanks again for submitting this issue! I see you said you might be able to implement this, any chance you still want to implement this yourself? I'd be happy to take a look at the pr you would submit for this |
…on paths start with "/" (#15865) Cloudfront invalidation paths must start with a leading "/". This pull requests adds a corresponding validation to fail during build instead of during the Cloudformation deployment. closes #9317 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
…on paths start with "/" (aws#15865) Cloudfront invalidation paths must start with a leading "/". This pull requests adds a corresponding validation to fail during build instead of during the Cloudformation deployment. closes aws#9317 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…on paths start with "/" (aws#15865) Cloudfront invalidation paths must start with a leading "/". This pull requests adds a corresponding validation to fail during build instead of during the Cloudformation deployment. closes aws#9317 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…on paths start with "/" (aws#15865) Cloudfront invalidation paths must start with a leading "/". This pull requests adds a corresponding validation to fail during build instead of during the Cloudformation deployment. closes aws#9317 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Before deploying, validate that each element of
distributionPaths
starts with a slash.Use Case
The following code results in a CloudFormation failure:
The issue is that
distributionPaths
should have a leading slash, i.e./images/*
. Cloudfront errors are slow and frustrating, so should be avoided where possible.Proposed Solution
Make sure the paths have a leading slash before attempting to deploy.
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: