Open mikkokotila opened 6 years ago
Hello, I installed form pip and am doing:
from myawis import * access = 'x' secret = 'x' obj = CallAwis(access, secret) urlinfo = obj.urlinfo("www.example.com")
and I get:
{'OutputTimestamp': '20180520T152730Z', 'Request.Errors.Error.ErrorCode': '"User: ' 'arn:aws:iam::192208424764:user/alexa is ' 'not authorized to perform: awis:GET on ' 'resource: ' 'arn:aws:awis:us-west-1:192208424764:/api"'}
But this credential is ok in the AWS side. Any ideas?
I had the same problem. Have you solved it?
@mikkokotila @luzihang123
Your user doesn't have permissions. Just grant all permissions like in the screen below.
@mikkokotila and @luzihang123 this IAM policy is working for me (from the documentation https://aws.amazon.com/awis/getting-started/)
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"awis:GET"
],
"Effect": "Allow",
"Resource": "*"
}
]
}
Hello, I installed form pip and am doing:
and I get:
But this credential is ok in the AWS side. Any ideas?