You've already forked EjemplosPoliticasAWS
Orden en carpetas
This commit is contained in:
28
DynamoDB/AccesoAmazonDynamoDBatributo.json
Normal file
28
DynamoDB/AccesoAmazonDynamoDBatributo.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"dynamodb:GetItem",
|
||||
"dynamodb:BatchGetItem",
|
||||
"dynamodb:Query",
|
||||
"dynamodb:PutItem",
|
||||
"dynamodb:UpdateItem",
|
||||
"dynamodb:DeleteItem",
|
||||
"dynamodb:BatchWriteItem"
|
||||
],
|
||||
"Resource": ["arn:aws:dynamodb:*:*:table/table-name"],
|
||||
"Condition": {
|
||||
"ForAllValues:StringEquals": {
|
||||
"dynamodb:Attributes": [
|
||||
"column-name-1",
|
||||
"column-name-2",
|
||||
"column-name-3"
|
||||
]
|
||||
},
|
||||
"StringEqualsIfExists": {"dynamodb:Select": "SPECIFIC_ATTRIBUTES"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
21
DynamoDB/AccesoAmazonDynamoDBidCognito.json
Normal file
21
DynamoDB/AccesoAmazonDynamoDBidCognito.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"dynamodb:DeleteItem",
|
||||
"dynamodb:GetItem",
|
||||
"dynamodb:PutItem",
|
||||
"dynamodb:Query",
|
||||
"dynamodb:UpdateItem"
|
||||
],
|
||||
"Resource": ["arn:aws:dynamodb:*:*:table/MyTable"],
|
||||
"Condition": {
|
||||
"ForAllValues:StringEquals": {
|
||||
"dynamodb:LeadingKeys": ["${cognito-identity.amazonaws.com:sub}"]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
34
DynamoDB/AccesoAmazonDynamoDBtabla.json
Normal file
34
DynamoDB/AccesoAmazonDynamoDBtabla.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Sid": "ListAndDescribe",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"dynamodb:List*",
|
||||
"dynamodb:DescribeReservedCapacity*",
|
||||
"dynamodb:DescribeLimits",
|
||||
"dynamodb:DescribeTimeToLive"
|
||||
],
|
||||
"Resource": "*"
|
||||
},
|
||||
{
|
||||
"Sid": "SpecificTable",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"dynamodb:BatchGet*",
|
||||
"dynamodb:DescribeStream",
|
||||
"dynamodb:DescribeTable",
|
||||
"dynamodb:Get*",
|
||||
"dynamodb:Query",
|
||||
"dynamodb:Scan",
|
||||
"dynamodb:BatchWrite*",
|
||||
"dynamodb:CreateTable",
|
||||
"dynamodb:Delete*",
|
||||
"dynamodb:Update*",
|
||||
"dynamodb:PutItem"
|
||||
],
|
||||
"Resource": "arn:aws:dynamodb:*:*:table/MyTable"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user