I have an instance that has IAM role with several permissions. I get the following error when running s3 commands on that instance:
I run the command
aws s3 cp s3://test-ue1/chef-12.3.0-1.el6.x86_64.rpm .
and get the following output
'AccessKeyId'
Does anyone know why? or how I can trouble shoot this?
When I ran into this situation it was caused by a bad IAM instance profile configuration, specifically the assume role policy. Fixing that fixed the problem.
I don't have the bad policy anymore, but here's one that works:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"Service": "ec2.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With