Turns out it was the ./
changes: - ./$SUBDIR/dist/**/*
^ does not work.
changes: - $SUBDIR/dist/**/*
^ works
Odd thing is, the dot slash in the script works fine though.
script: - aws s3 sync ./$SUBDIR/dist