Does cognitect/aws-api not support IMDSv2?
Not yet. Please submit an issue https://github.com/cognitect-labs/aws-api/issues
It seems not — I upgraded today to the Amazon Linux 2 and I disabled IMDSv1 (not fully knowing the consequences 😄) which led to the credentials provider not being able to fetch any credentials. On the plus side, I know know what IMDS is and how my app works by accident due to having the elastic beanstalk instance role assigned to it with just the right permissions 🙂
I reenabled IMDSv1 and everything goes smoothly again.