Skip to content

Commit ee68663

Browse files
authored
Fix manifests.txt invalidation
The run yesterday failed ``` running "aws" "cloudfront" "create-invalidation" "--invalidation-batch" "file:///codebuild/output/src2735315778/src/release/payload.json" "--distribution-id" "E3NZU1LCBHH4A4" An error occurred (InvalidArgument) when calling the CreateInvalidation operation: Your request contains one or more invalid invalidation paths. ``` And the docs say > In the CloudFront console, you can omit the leading slash in the path, like this: images/image2.jpg. When you use the CloudFront API directly, invalidation paths must begin with a leading slash. So looks like that's the bug.
1 parent 367bd60 commit ee68663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ impl Context {
603603
}
604604

605605
fn invalidate_manifests_txt(&self) -> Result<(), Error> {
606-
self.invalidate_all_cdns(&["manifests.txt".into()])
606+
self.invalidate_all_cdns(&["/manifests.txt".into()])
607607
}
608608

609609
fn invalidate_all_cdns(&self, paths: &[String]) -> Result<(), Error> {

0 commit comments

Comments
 (0)