Difference between revisions of "MapRoles:"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
 +
Official example<ref>https://docs.aws.amazon.com/eks/latest/userguide/add-user-role.html</ref>:
 +
 +
- groups:
 +
  - [[system:bootstrappers]]
 +
  - [[system:nodes]]
 +
  rolearn: arn:aws:iam::111122223333:role/my-node-role
 +
  username: system:node:{{EC2PrivateDNSName}}
 +
 +
 
{{MapUsers and mapRoles}}
 
{{MapUsers and mapRoles}}
  

Revision as of 14:51, 21 December 2023

Official example[1]:

- groups:
  - system:bootstrappers
  - system:nodes
  rolearn: arn:aws:iam::111122223333:role/my-node-role
  username: system:node:Template:EC2PrivateDNSName


mapUsers: |
 - userarn: arn:aws:iam::XXXXXXXXXXXX:user/your-aws-user
   username: your-k8s-new-user-with-master-privileges
   groups:
     - system:masters

mapRoles: |
 - rolearn: arn:aws:iam::XXXXXXXXXXXX:role/your-aws-role
   username: your-new-k8s-user-with-master
   groups:
     - system:masters


inputs = {

aws_auth_extra_roles = <<-EOF
mapUsers: |
 - userarn: arn:aws:iam::XXXXXXXXXXXX:user/your-aws-user
   username: your-k8s-new-user-with-master-privileges
   groups:
     - system:masters
 EOF
}

Related

See also

  • https://docs.aws.amazon.com/eks/latest/userguide/add-user-role.html
  • Advertising: