This repo was forked from https://github.com/dfds/kiam2irsa, moved to the latest Golang version and updated with the latest dependencies versions.
This is a tool that can be useful when migrating from KIAM to IAM Roles for Service Accounts (IRSA). The tool will find all Kubernetes service accounts that has the annotation:
metadata:
annotations:
eks.amazonaws.com/role-arn: "<ANY ARN>"
and doesn't have the annotation:
metadata:
annotations:
eks.amazonaws.com/sts-regional-endpoints: "true"
./kiam2irsa --help
./kiam2irsa sa --help
./kiam2irsa pods --help
./kiam2irsa sa
KUBECONFIG=~/.kube/my-cluster.config
./kiam2irsa sa
./kiam2irsa sa --kubeconfig ~/.kube/my-cluster.config
./kiam2irsa pods --status KIAM
./kiam2irsa pods --status BOTH
./kiam2irsa pods --status IRSA
go build .