File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -702,13 +702,13 @@ check_invalidation_status() {
702702 counter=0
703703 echo " invalidating cache with ID $INVALIDATE_ID "
704704 sleep 60
705- invalidstatus =` aws cloudfront create -invalidation --distribution-id $AWS_CLOUD_FRONT_ID --id $INVALIDATE_ID | $JQ ' .Invalidation.Status' `
705+ invalidstatus =` aws cloudfront get -invalidation --distribution-id $AWS_CLOUD_FRONT_ID --id $INVALIDATE_ID | $JQ ' .Invalidation.Status' `
706706
707707 while [[ $invalidstatus != * " Completed" * ]]
708708 do
709709 echo " Waiting for 15 sec and try to check the invalidation status..."
710710 sleep 15
711- invalidstatus =` aws cloudfront create -invalidation --distribution-id $AWS_CLOUD_FRONT_ID --id $INVALIDATE_ID | $JQ ' .Invalidation.Status' `
711+ invalidstatus =` aws cloudfront get -invalidation --distribution-id $AWS_CLOUD_FRONT_ID --id $INVALIDATE_ID | $JQ ' .Invalidation.Status' `
712712 counter=` expr $counter + 1`
713713 if [[ $counter -gt $COUNTER_LIMIT ]] ; then
714714 echo " Invalidation does not complete with in 180 seconds. Please check the GUI mode."
You can’t perform that action at this time.
0 commit comments