Skip to content

[V2] Fix quoting in create-invalidation-for-distribution-tenant example#10504

Open
github-actions[bot] wants to merge 1 commit into
v2from
v2-sync-pr-10470
Open

[V2] Fix quoting in create-invalidation-for-distribution-tenant example#10504
github-actions[bot] wants to merge 1 commit into
v2from
v2-sync-pr-10470

Conversation

@github-actions

@github-actions github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown

This PR cherry-picks the commits from #10470 to the v2 branch. Fixes #10469.

Please complete the following checklist before merging:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Fix quoting in create-invalidation-for-distribution-tenant example

The create-invalidation-for-distribution-tenant example wrapped the
entire --invalidation-batch JSON in single quotes, which prevents
$(date +%s) from expanding in any POSIX shell. CallerReference was
always the literal string "invalidation-$(date +%s)", so running the
example more than once caused CloudFront to return the original
invalidation instead of creating a new one.

Close the single quotes around the timestamp so $(date +%s) expands,
and update the example output to show a real expanded value.

Fixes #10469
@github-actions
github-actions Bot requested a review from a team as a code owner July 21, 2026 14:29
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.

1 participant