Skip to content

cloudfront-invalidate: Guard against null Aliases.Items - #84

Merged
joverlee521 merged 1 commit into
mainfrom
fix-cloudfront-invalidate
Aug 3, 2026
Merged

cloudfront-invalidate: Guard against null Aliases.Items#84
joverlee521 merged 1 commit into
mainfrom
fix-cloudfront-invalidate

Conversation

@joverlee521

@joverlee521 joverlee521 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Description of proposed changes

Prevent error where query fails because a disabled CloudFront distribution does not have any Aliases.

Related issue(s)

Resolves #83

Checklist

  • Checks pass
  • If adding a script, add an entry for it in the README.

Prevent error where query fails because a disabled CloudFront
distribution does not have any Aliases.

Resolves #83
@joverlee521

Copy link
Copy Markdown
Contributor Author

Tested locally

$ ./scripts/cloudfront-invalidate data.nextstrain.org /files/workflows/hantavirus/htnv/l/metadata.tsv.zst
-> Finding CloudFront distribution
-> Creating CloudFront invalidation for distribution E3LB0EWZKCCV
-> Waiting for CloudFront invalidation I70GY7Q03K351HAKK2ZFS2LATD to complete
   Ctrl-C to stop waiting.

@joverlee521
joverlee521 merged commit 5b4c394 into main Aug 3, 2026
2 checks passed
@joverlee521
joverlee521 deleted the fix-cloudfront-invalidate branch August 3, 2026 22:51
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.

scripts/cloudfront-invalidate: aws error during list-distributions

2 participants