apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  namespace: test-eks-lambda
  name: eks-lambda-role
rules:
- apiGroups: [""] 
  resources: ["pods"]
  verbs: ["get", "watch", "list"]
- apiGroups: ["extensions", "apps"]
  resources: ["deployments"]
  verbs: ["get", "list", "watch","create", "update","patch"]