Skip to content

Commit

Permalink
Changed policy to AmazonDynamoDBFullAccess for delete and put (#1106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Masino authored and markpeek committed Jul 22, 2018
1 parent 3b85736 commit ee0f276
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/Serverless_Api_Backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
Handler='index.put',
Runtime='nodejs4.3',
CodeUri='s3://<bucket>/api_backend.zip',
Policies='AmazonDynamoDBReadOnlyAccess',
Policies='AmazonDynamoDBFullAccess',
Environment=Environment(
Variables={
'TABLE_NAME': Ref(simple_table)
Expand All @@ -67,7 +67,7 @@
Handler='index.delete',
Runtime='nodejs4.3',
CodeUri='s3://<bucket>/api_backend.zip',
Policies='AmazonDynamoDBReadOnlyAccess',
Policies='AmazonDynamoDBFullAccess',
Environment=Environment(
Variables={
'TABLE_NAME': Ref(simple_table)
Expand Down
4 changes: 2 additions & 2 deletions tests/examples_output/Serverless_Api_Backend.template
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
},
"Handler": "index.delete",
"Policies": "AmazonDynamoDBReadOnlyAccess",
"Policies": "AmazonDynamoDBFullAccess",
"Runtime": "nodejs4.3"
},
"Type": "AWS::Serverless::Function"
Expand Down Expand Up @@ -71,7 +71,7 @@
}
},
"Handler": "index.put",
"Policies": "AmazonDynamoDBReadOnlyAccess",
"Policies": "AmazonDynamoDBFullAccess",
"Runtime": "nodejs4.3"
},
"Type": "AWS::Serverless::Function"
Expand Down

0 comments on commit ee0f276

Please sign in to comment.