AWS: instance metadata for iam is not found


I’m trying to set up elasticsearch s3 snapshots on my ec2 instances. And it fails with following error:

If I query the metadata server from that ec2 instance, it responses the following:

So there is no iam section.

How to make iam section available for querying from ec2 instance ?


Following meta-data URI will return something if you have the role attached to the given ec2 instance:

so it looks like you don’t have an IAM role attached. Please verify.

Leave a Reply