You've already forked EjemplosPoliticasAWS
Politicas RDS S3 Lambda
This commit is contained in:
40
lambda/permiteFuncionLambdaAccederTablaDynamoDB.json
Normal file
40
lambda/permiteFuncionLambdaAccederTablaDynamoDB.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Sid": "ReadWriteTable",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"dynamodb:BatchGetItem",
|
||||
"dynamodb:GetItem",
|
||||
"dynamodb:Query",
|
||||
"dynamodb:Scan",
|
||||
"dynamodb:BatchWriteItem",
|
||||
"dynamodb:PutItem",
|
||||
"dynamodb:UpdateItem"
|
||||
],
|
||||
"Resource": "arn:aws:dynamodb:*:*:table/SampleTable"
|
||||
},
|
||||
{
|
||||
"Sid": "GetStreamRecords",
|
||||
"Effect": "Allow",
|
||||
"Action": "dynamodb:GetRecords",
|
||||
"Resource": "arn:aws:dynamodb:*:*:table/SampleTable/stream/* "
|
||||
},
|
||||
{
|
||||
"Sid": "WriteLogStreamsAndGroups",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"logs:CreateLogStream",
|
||||
"logs:PutLogEvents"
|
||||
],
|
||||
"Resource": "*"
|
||||
},
|
||||
{
|
||||
"Sid": "CreateLogGroup",
|
||||
"Effect": "Allow",
|
||||
"Action": "logs:CreateLogGroup",
|
||||
"Resource": "*"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user