title: How to use IMDSv2 from AWS Java SDK
body: <p>If an instance is configured for <strong>IMDSv2</strong> then after upgrading AWS-CLI we are able to connect to IMDSv2 , but we can not connect to it from java code.</p>
  
  <p>Also, we could not find any documentation regarding whether we need any specific version of AWS java SDK to support IMDSv2, OR is it supported implicitly, OR is it not supported from JAVA SDK yet.  </p>
  
  <p>One more point is , how to ask default provider chain to use IMDSv2 while trying to load credentials.</p>
  
  <p>Please let me know</p>