title: AWS: instance metadata for iam is not found
body: <p>I'm trying to set up elasticsearch s3 snapshots on my ec2 instances. And it fails with following error:</p>
  <pre><code>nested: NotSerializableExceptionWrapper[sdk_client_exception: The requested metadata is not found at http://169.254.169.254/latest/meta-data/iam/security-credentials/
  </code></pre>
  <p>If I query the metadata server from that ec2 instance, it responses the following:</p>
  <pre><code>$ curl http://169.254.169.254/latest/meta-data/
  ami-id
  ami-launch-index
  ami-manifest-path
  block-device-mapping/
  events/
  hostname
  identity-credentials/
  instance-action
  instance-id
  instance-type
  local-hostname
  local-ipv4
  mac
  metrics/
  network/
  placement/
  profile
  public-keys/
  reservation-id
  security-groups
  services/
  </code></pre>
  <p>So there is no <strong>iam</strong> section.</p>
  <p>How to make iam section available for querying from ec2 instance ?</p>