I am very new to AWS. I created an IAM role which has full access to S3. I assigned this role to a Windows Server EC2 instance. I then installed CLI on that instance. I then remoted into that instance using RDP, and started a CMD windows, and typed in
aws s3 ls
It complained that
Unable to locate credentials. You can configure credentials by running "aws configure".
Now that this EC2 has been assigned the role that has full access to S3, why can't I directly access S3?
http://169.254.169.254/latest/meta-data/iam/security-credentials/? If so, append the role name to that URL and confirm whether security credentials are shown (eg Access Key & Secret Key). - John Rotensteinhttp://169.254.169.254/latest/meta-data/in a browser on the EC2 instance? It's starting to sound like the IAM Role is not attached to the instance. - John Rotenstein