Skip to content

service_sdk_mappings possibly mapping "dynamodb": [..., "DynamoDB"] ? #28

@wittekm

Description

@wittekm

Hi there!

Perhaps I'm misunderstanding the usecase for service_sdk_mappings, but I think it's missing some entries.

For example, I would like to find all possible IAM Actions associated with a Cloudtrail action.
I don't know how to map a Cloudtrail action with
{ eventSource "dynamodb.amazonaws.com", eventName "BatchExecuteStatement"} (for example) (this may be a bad example since it's a data-level event)
to DynamoDB.BatchExecuteStatement due to capitalization.

Am I mis-using service_sdk_mappings or should it, in fact, have this in there?


as a workaround, for now I am trying an educated-guess by basically normalizing each entry in sdk_method_iam_mappings from "DynamoDB.BatchExecuteStatment" to "dynamodb.batchexecutestatement" and trying a best-guess "${eventSource without the amazonaws suffix}.${eventName}".lowercase() in addition to the mappings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions