File tree Expand file tree Collapse file tree
modules/agents/eks-strands-agents-demo Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ Parameters:
1111 RoleName :
1212 Type : String
1313 Description : The name of the IAM Role
14+ EksClusterName :
15+ Type : String
16+ Description : The name of the EKS Cluster
1417
1518Resources :
1619 Policy :
@@ -19,8 +22,20 @@ Resources:
1922 PolicyDocument :
2023 Statement :
2124 - Effect : Allow
22- Action : ' *'
23- Resource : ' *'
25+ Action :
26+ - " iam:CreatePolicy"
27+ Resource :
28+ - !Sub " arn:${AWS::Partition}:iam::${AWS::AccountId}:policy/*"
29+ - Effect : Allow
30+ Action :
31+ - " eks:Create*"
32+ - " eks:Update*"
33+ - " eks:Delete*"
34+ - " eks:List*"
35+ - " eks:Describe*"
36+ Resource :
37+ - !Sub " arn:${AWS::Partition}:eks:${AWS::Region}:${AWS::AccountId}:cluster/${EksClusterName}"
38+ - !Sub " arn:${AWS::Partition}:eks:${AWS::Region}:${AWS::AccountId}:*/${EksClusterName}/*"
2439 Version : 2012-10-17
2540 PolicyName : " strands-module-policy"
2641 Roles : [!Ref RoleName]
You can’t perform that action at this time.
0 commit comments