Closed
Description
When using NiFi (which uses Spring Vault 3.1.0 under the hood) on an EC2 instance with IMDSv2 set to 'Required', we get the error message "Cannot obtain Identity Document from http://169.254.169.254/latest/dynamic/instance-identity/document".
If we toggle IMDSv2 on the EC2 instance to 'Optional', the error does not appear.
Reviewing the latest version of Spring Vault, it seems to me that this would still be the case with 3.1.1.
We raised the issue with NiFi and they advised us to raise it instead as an issue with Spring Vault.