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

IAM Role needed dynamodb:BatchWriteItem not PutItem #36

Closed
pyrabbit opened this issue Aug 8, 2017 · 2 comments
Closed

IAM Role needed dynamodb:BatchWriteItem not PutItem #36

pyrabbit opened this issue Aug 8, 2017 · 2 comments

Comments

@pyrabbit
Copy link

pyrabbit commented Aug 8, 2017

I was working on the data processing where I ran into what I believe is an error in the documentation. I had to use the BatchWriteItem permission not the PutItem permission. AWS Lambda was throwing permission errors. Here is what finally worked for me..

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1502216829000",
            "Effect": "Allow",
            "Action": [
                "dynamodb:BatchWriteItem"
            ],
            "Resource": [
                "arn:aws:dynamodb:us-east-1:<id>:table/UnicornSensorData"
            ]
        },
        {
            "Sid": "Stmt1502216880000",
            "Effect": "Allow",
            "Action": [
                "s3:GetObject"
            ],
            "Resource": [
                "arn:aws:s3:::wildrydes-uploads-mattorahood/*"
            ]
        }
    ]
}
@pyrabbit
Copy link
Author

pyrabbit commented Aug 8, 2017

This is for the Data Processing exercise

@jpignata
Copy link
Contributor

jpignata commented Sep 8, 2017

Thanks! Looks like this was fixed in a recent pull.

@jpignata jpignata closed this as completed Sep 8, 2017
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

2 participants