Had a bug with my config on Gitlab 15 with a similar symptom, it ended up being a missing use_iam_profile config
use_iam_profile