Skip to content

Instantly share code, notes, and snippets.

@guygrip
Created May 18, 2022 16:41
Show Gist options
  • Save guygrip/a20001c8a3eade08f49a34605a303a37 to your computer and use it in GitHub Desktop.
Save guygrip/a20001c8a3eade08f49a34605a303a37 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ConfigMap
metadata:
name: aws-auth
namespace: kube-system
data:
mapRoles: |
- rolearn: arn:aws:iam::111122223333:role/eksctl-my-cluster-nodegroup-standard-wo-NodeInstanceRole-1WP3NUE3O6UCF
username: system:node:{{EC2PrivateDNSName}}
groups:
- system:bootstrappers
- system:nodes
mapUsers: |
- userarn: arn:aws:iam::111122223333:user/admin
username: admin
groups:
- system:masters
- userarn: arn:aws:iam::444455556666:user/ops-user
username: ops-user
groups:
- eks-console-dashboard-full-access-group
- userarn: arn:aws:iam::444455556666:user/ops-user2
username: ops-user2
groups:
- eks-console-dashboard-restricted-access-group
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment