The version of cloud-init included with RHEL is older than 19.4 and it does not allow the use of session authentication. Only providing supports IMDS v1
Red Hat Enterprise Linux 7
Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.