Skip to content

Commit

Permalink
removed excess permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
daidokoro committed Jul 15, 2024
1 parent 702a45d commit 30baef5
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1015,12 +1015,6 @@ Resources:
Runtime: python3.12
Timeout: 900
Policies:
- Statement:
- Sid: IAMAccess
Effect: Allow
Action:
- iam:*
Resource: '*'
- Statement:
- Sid: EC2Access
Effect: Allow
Expand All @@ -1032,18 +1026,6 @@ Resources:
- 'ec2:DescribeSubnets'
- 'ec2:DescribeSecurityGroups'
Resource: '*'
- Statement:
- Sid: SQSAccess
Effect: Allow
Action:
- sqs:*
Resource: '*'
- Statement:
- Sid: SNSAccess
Effect: Allow
Action:
- sns:*
Resource: '*'
- Statement:
- Sid: LambdaAccess
Effect: Allow
Expand All @@ -1058,7 +1040,7 @@ Resources:
- lambda:CreateEventSourceMapping
- lambda:DeleteEventSourceMapping
- lambda:UpdateEventSourceMapping
Resource: '*'
Resource: !GetAtt LambdaFunction.Arn
- Statement:
- Sid: S3NotificationPolicy
Effect: Allow
Expand Down

0 comments on commit 30baef5

Please sign in to comment.