EKS <> LAMbda - Facing issue

75 views
Skip to first unread message

Vivek BeingDevOps

unread,
Aug 17, 2020, 11:29:46 AM8/17/20
to kubernetes-sig-aws
Hi Guys,

I've been struggling to find a solution to my problem ,Kindly share your thoughts if anyone has idea on below 

>> How to authenticate & authorise Lambda function(python code) for creating Kubernetes secret on EKS
?

I'm able to run Python code locally & able to create secret on EKS cluster since I have my local copy of "./kube/config" whereas its not present on Lambda ..pls suggest the way to achieve it

Roman Judin

unread,
Aug 17, 2020, 12:28:36 PM8/17/20
to kubernetes-sig-aws

Roman Judin

unread,
Aug 17, 2020, 12:28:36 PM8/17/20
to kubernetes-sig-aws

Adrian Maceiras

unread,
Aug 17, 2020, 1:11:55 PM8/17/20
to Vivek BeingDevOps, kubernetes-sig-aws
Run the lambda using a role you created.
Make sure that role is allowed in your EKS aws-auth map.
https://docs.aws.amazon.com/eks/latest/userguide/add-user-role.html
Provide a kube/config that leverages your IAM role auth. 


--
You received this message because you are subscribed to the Google Groups "kubernetes-sig-aws" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-sig-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-sig-aws/dc975090-7c26-4929-b533-a8d46006143fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages