A tag that is not visible yet makes the AWS CLI exit non-zero, and set -e was aborting the retry loop on that first error.