: Because your
instance metadata is available from your running instance, you do not need to use the Amazon EC2
console or the AWS CLI. This can be helpful when you're writing scripts to run from your
instance.To view all categories of instance metadata from within a running instance, use the
following URI:
- The address retrieves user
data that you specified when launching your instance
"Create an IAM role and attach it to my EC2 instance so I can perform a 'describe' API call" -
The AWS CLI has a describe-instances API call you can make where you would have to specify the
instance ID, so that would not work for your requirement