@@ -6,35 +6,53 @@ data "aws_iam_policy_document" "assumed_role_permissions_boundary" {
66 effect = " Allow"
77
88 actions = [
9- " acm:*" ,
10- " application-autoscaling:*" ,
11- " apigateway:*" ,
12- " cloudtrail:*" ,
13- " cloudwatch:*" ,
14- " config:*" ,
15- " dynamodb:*" ,
16- " ec2:*" ,
17- " events:*" ,
18- " firehose:*" ,
19- " glue:*" ,
20- " health:*" ,
21- " iam:*" ,
22- " kms:*" ,
23- " lambda:*" ,
24- " logs:*" ,
25- " network-firewall:*" ,
26- " pipes:*" ,
27- " s3:*" ,
28- " schemas:*" ,
29- " sns:*" ,
30- " servicequotas:*" ,
31- " ssm:*" ,
32- " states:*" ,
33- " support:*" ,
34- " sqs:*" ,
35- " tag:*" ,
36- " trustedadvisor:*" ,
37- " xray:*"
9+ # DynamoDB - table operations for Lambda and external write roles
10+ " dynamodb:GetItem" ,
11+ " dynamodb:Query" ,
12+ " dynamodb:Scan" ,
13+ " dynamodb:PutItem" ,
14+ " dynamodb:UpdateItem" ,
15+ " dynamodb:DeleteItem" ,
16+ " dynamodb:BatchWriteItem" ,
17+
18+ # S3 - bucket and object operations for Lambda and Firehose
19+ " s3:GetObject" ,
20+ " s3:ListBucket" ,
21+ " s3:PutObject" ,
22+ " s3:PutObjectAcl" ,
23+ " s3:AbortMultipartUpload" ,
24+ " s3:GetBucketLocation" ,
25+ " s3:ListBucketMultipartUploads" ,
26+
27+ # KMS - encryption/decryption for DynamoDB and S3
28+ " kms:Encrypt" ,
29+ " kms:Decrypt" ,
30+ " kms:ReEncrypt*" ,
31+ " kms:GenerateDataKey" ,
32+ " kms:GenerateDataKey*" ,
33+ " kms:DescribeKey" ,
34+
35+ # CloudWatch Logs - Lambda execution and Firehose logging
36+ " logs:CreateLogGroup" ,
37+ " logs:CreateLogStream" ,
38+ " logs:PutLogEvents" ,
39+ " logs:DescribeLogGroups" ,
40+ " logs:DescribeLogStreams" ,
41+
42+ # EC2 - VPC access for Lambda (from AWSLambdaVPCAccessExecutionRole)
43+ " ec2:CreateNetworkInterface" ,
44+ " ec2:DescribeNetworkInterfaces" ,
45+ " ec2:DeleteNetworkInterface" ,
46+ " ec2:AttachNetworkInterface" ,
47+ " ec2:DetachNetworkInterface" ,
48+
49+ # Kinesis Firehose - Lambda writing audit data
50+ " firehose:PutRecord" ,
51+ " firehose:PutRecordBatch" ,
52+
53+ # X-Ray - Lambda tracing
54+ " xray:PutTraceSegments" ,
55+ " xray:PutTelemetryRecords"
3856 ]
3957
4058 resources = [" *" ]
0 commit comments