Skip to content

Instantly share code, notes, and snippets.

@bagel-dawg
Created June 28, 2022 17:49
Show Gist options
  • Save bagel-dawg/ed52e2be7a23fd0b8e423b825510d842 to your computer and use it in GitHub Desktop.
Save bagel-dawg/ed52e2be7a23fd0b8e423b825510d842 to your computer and use it in GitHub Desktop.
EKS IAM Role Map (for SSO or other IAM roles)
apiVersion: v1
kind: ConfigMap
metadata:
name: aws-auth
namespace: kube-system
data:
mapRoles: |
- groups:
- system:masters
rolearn: arn:aws:iam::265337873895:role/AWSReservedSSO_AdministratorAccess_XXXXXXXXXXXXXXXXXXX
username: adminuser:{{SessionName}}
- groups:
- engineering
rolearn: arn:aws:iam::265337873895:role/AWSReservedSSO_EngineeringAccess_XXXXXXXXXXXXXXXXXXXX
username: engineering:{{SessionName}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment