mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 08:31:53 -05:00
DynamoDB is read from iam-request-resources.json now, and
ResourceArnBuilder's DynamoDB branch, the registry's PartiQL action,
the condition resolver's mapping of transaction items and statements to
actions and Step Functions' copy of all three are gone, leaving iam in
HAND_BUILT.
Which action each transaction item and each PartiQL statement is
checked as comes from the developer guide, vendored by
fetch_dynamodb_permissions.py into
tools/aws/sources/dynamodb-permissions.json and read under
PERMISSION_SOURCES: the PartiQL IAM page's required permissions and the
transactions page's paragraph on each kind of item.
- Each transaction item is checked as the action of its kind on the
table its TableName names (TransactItems[].Put.TableName as
dynamodb:PutItem), each PartiQL statement as the action of its verb on
the table or index it names, an EXISTS statement as the SELECT it
evaluates, which DynamoDB's own parser reads through the new
StoredResourceArns.statement hook before it binds the request's
parameters. A request naming nothing is checked as its own action on
*; a state machine's task naming nothing is left to DynamoDB, as
before.
- RequestResources.targets replaces checkedAs: each element of a list is
read apart and returned with its check, so the condition resolver
still gives each item or statement its own keys and
dynamodb:EnclosingOperation.
- BatchGetItem and BatchWriteItem name their tables by the keys of
RequestItems, which the generator reads from botocore (RequestItems{}).
- RequestResourceMembers reads Name{}, Name[].Item.Field and statement
rows (statement, verb, names).
67 lines
2.3 KiB
JSON
67 lines
2.3 KiB
JSON
{
|
|
"_source": {
|
|
"pages": [
|
|
"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ql-iam.html",
|
|
"https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transaction-apis-iam.html"
|
|
],
|
|
"fetcher": "tools/aws/fetch_dynamodb_permissions.py",
|
|
"retrieved": "2026-11-22",
|
|
"note": "The PartiQL page's list of required permissions and the transactions page's paragraph on the permissions of each kind of item, sentence by sentence, each with the names the page sets as code, copied as they stand."
|
|
},
|
|
"partiql": {
|
|
"page": "https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ql-iam.html",
|
|
"lead": "The following permissions are required:",
|
|
"items": [
|
|
{
|
|
"text": "To read items using PartiQL for DynamoDB, you must have dynamodb:PartiQLSelect permission on the table or index.",
|
|
"code": [
|
|
"dynamodb:PartiQLSelect"
|
|
]
|
|
},
|
|
{
|
|
"text": "To insert items using PartiQL for DynamoDB, you must have dynamodb:PartiQLInsert permission on the table or index.",
|
|
"code": [
|
|
"dynamodb:PartiQLInsert"
|
|
]
|
|
},
|
|
{
|
|
"text": "To update items using PartiQL for DynamoDB, you must have dynamodb:PartiQLUpdate permission on the table or index.",
|
|
"code": [
|
|
"dynamodb:PartiQLUpdate"
|
|
]
|
|
},
|
|
{
|
|
"text": "To delete items using PartiQL for DynamoDB, you must have dynamodb:PartiQLDelete permission on the table or index.",
|
|
"code": [
|
|
"dynamodb:PartiQLDelete"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"transactions": {
|
|
"page": "https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transaction-apis-iam.html",
|
|
"sentences": [
|
|
{
|
|
"text": "Permissions for Put, Update, Delete, and Get actions are governed by the permissions used for the underlying PutItem, UpdateItem, DeleteItem, and GetItem operations.",
|
|
"code": [
|
|
"Put",
|
|
"Update",
|
|
"Delete",
|
|
"Get",
|
|
"PutItem",
|
|
"UpdateItem",
|
|
"DeleteItem",
|
|
"GetItem"
|
|
]
|
|
},
|
|
{
|
|
"text": "For the ConditionCheck action, you can use the dynamodb:ConditionCheckItem permission in IAM policies.",
|
|
"code": [
|
|
"ConditionCheck",
|
|
"dynamodb:ConditionCheckItem"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|