I have a Windows EC2 instance with a role assigned. When I want to do some queries through awscli I get the error message:
"Unable to locate credentials."
But the role is obviously correctly attached:
http://169.254.169.254/latest/meta-data/iam/security-credentials/xxx-API-role
{
"Code" : "Success",
"LastUpdated" : "2018-06-08T11:03:39Z",
"Type" : "AWS-HMAC",
"AccessKeyId" : "xxx",
"SecretAccessKey" : "xxx",
"Token" : "xxx",
"Expiration" : "2018-06-08T17:34:08Z"
}
Any ideas why it is not working? This is already the third instance it is not work with.
Thanks!!