Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authorization problem #18

Open
mikkokotila opened this issue May 20, 2018 · 3 comments
Open

authorization problem #18

mikkokotila opened this issue May 20, 2018 · 3 comments

Comments

@mikkokotila
Copy link
Contributor

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?

@luzihang123
Copy link

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?

@mowshon
Copy link

mowshon commented Nov 29, 2018

@mikkokotila @luzihang123

Your user doesn't have permissions. Just grant all permissions like in the screen below.

first

second

@kevinstubbs
Copy link

@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": "*"
        }
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants