A web application to visualize AWS IAM policies as graphs.
- Visualize IAM policies as interactive graphs
- Zoom and pan functionality
- Tooltips with detailed information
- Search and highlight specific nodes
- Export graph as SVG image
- Legend to explain colors and shapes
Clone the repository and install dependencies:
git clone https://github.com/webpro255/iam-policy-simulator.git
cd iam-policy-simulator
npm installStart the server:
node app.jsOpen your browser and go to http://localhost:3000.
{
"Version": "2024-06-17",
"Statement": [
{
"Effect": "Allow",
"Action": "*",
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"ec2:DescribeInstances",
"ec2:StartInstances",
"ec2:StopInstances",
"ec2:RebootInstances",
"s3:ListBucket",
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject",
"iam:ListUsers",
"iam:GetUser",
"iam:CreateUser",
"iam:DeleteUser",
"iam:UpdateUser",
"iam:ListGroups",
"iam:CreateGroup",
"iam:DeleteGroup",
"iam:AddUserToGroup",
"iam:RemoveUserFromGroup",
"iam:ListPolicies",
"iam:AttachUserPolicy",
"iam:DetachUserPolicy",
"iam:CreatePolicy",
"iam:DeletePolicy",
"rds:DescribeDBInstances",
"rds:StartDBInstance",
"rds:StopDBInstance",
"lambda:ListFunctions",
"lambda:CreateFunction",
"lambda:DeleteFunction",
"lambda:InvokeFunction",
"cloudwatch:PutMetricData",
"cloudwatch:GetMetricData",
"cloudwatch:DescribeAlarms",
"cloudwatch:PutDashboard",
"cloudtrail:DescribeTrails",
"cloudtrail:StartLogging",
"cloudtrail:StopLogging",
"logs:CreateLogGroup",
"logs:DeleteLogGroup",
"logs:PutLogEvents",
"logs:GetLogEvents",
"logs:CreateLogStream",
"logs:DeleteLogStream"
],
"Resource": "*"
}
]
}This project is licensed under the MIT License.