You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create an easy way to set up new roles and serviceaccounts for user applications #69
Right now when someone wants to create a new application and give it access to something in AWS we give them instructions on how to do it using "IRSA", the new mechanism for granting access to pods, but there's still quite a bit of manual work and confusion. I think we could simplify it by writing some terraform that would allow them to supply a list of service account names and corresponding AWS IAM policies, and we can create all the required resources. We can either just leave the list blank to start or maybe we could use it to create some of the service accounts we need for stuff we set up like external-dns.
I imagine this could look like another file in infrastructure/terraform/environments/<env>/ maybe application_iam_policy where they can specify policy blocks like:
Then in the background we create the role for them. We can do something similar in infrastructure/kubernetes and accept a list of serviceaccounts and namespaces and create the service accounts for them.
Activity
sshi100 commentedon Aug 28, 2020
This feature is called "IAM Role for Service Accounts" (aka: IRSA). I have gone through two articles: IAM roles for service accounts and Introducing fine-grained IAM roles for service accounts
Confirmed with @bmonkman that this should be a common module under infrastructure/kubernetes/terraform/modules/ side.
sshi100 commentedon Aug 31, 2020
PR: #74