Skip to content

Commit

Permalink
Split labs policy due to size
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed Aug 16, 2024
1 parent eb644b9 commit 0796608
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions lab/iam/iam-role-cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,14 @@ Resources:
aws:ResourceTag/env:
- ${Env}*

EksWorkshopLabsPolicy:
EksWorkshopLabsPolicy1:
Type: AWS::IAM::ManagedPolicy
DependsOn:
- EksWorkshopIdeRole
Properties:
Roles:
- !Ref EksWorkshopIdeRole
ManagedPolicyName: ${Env}-ide-labs
ManagedPolicyName: ${Env}-ide-labs1
PolicyDocument:
Version: "2012-10-17"
Statement:
Expand Down Expand Up @@ -432,6 +432,17 @@ Resources:
- guardduty:DeleteDetector
- guardduty:ListDetectors
Resource: ["*"]
EksWorkshopLabsPolicy2:
Type: AWS::IAM::ManagedPolicy
DependsOn:
- EksWorkshopIdeRole
Properties:
Roles:
- !Ref EksWorkshopIdeRole
ManagedPolicyName: ${Env}-ide-labs2
PolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: Allow
Action:
- logs:DescribeLogGroups
Expand Down

0 comments on commit 0796608

Please sign in to comment.