Understand the structure of the AWS map.json file
mainThe map.json file contains mappings between AWS SDK calls and IAM actions. It is used to understand which IAM permissions are required to execute specific SDK methods. The file includes service mappings for CloudTrail, SDK friendly names, and detailed permission requirements including resource ARN templates.
Key top-level keys include:
sdk_permissionless_actions: A list of SDK calls that do not require IAM permissions.sdk_method_iam_mappings: The core mapping of SDK methods to their required IAM actions.sdk_service_mappings: Maps friendly service names to IAM namespaces.service_sdk_mappings: Maps IAM namespaces back to friendly service names.cloudtrail_service_mappings: Maps CloudTrail event sources to IAM namespaces.service_cloudtrail_mappings: Maps IAM namespaces to CloudTrail event sources.
{
"info": "string",
"schema_version": "1.0.2",
"sdk_permissionless_actions": [
"DynamoDB.DescribeEndpoints"
],
"sdk_method_iam_mappings": {
"Budgets.CreateBudget": [
{
"action": "budgets:CreateBudget",
"resource_mappings": {
"BudgetName": {
"template": "${Budget.BudgetName}"
}
}
}
]
}
}