Difference between revisions of "Terraform EKS module: aws auth roles"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
  
 
Form official example:
 
Form official example:
<pre>
+
 
 
   aws_auth_roles = [
 
   aws_auth_roles = [
 
     {
 
     {
 
       rolearn  = "arn:aws:iam::66666666666:role/role1"
 
       rolearn  = "arn:aws:iam::66666666666:role/role1"
 
       username = "role1"
 
       username = "role1"
       groups  = ["system:masters"]
+
       groups  = ["[[system:masters]]"]
 
     },
 
     },
 
   ]
 
   ]
Line 25: Line 25:
 
     },
 
     },
 
   ]
 
   ]
</pre>
+
 
  
  

Revision as of 11:36, 28 November 2022

List of role maps to add to the aws-auth configmap

https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/latest#input_aws_auth_roles

Form official example:

 aws_auth_roles = [
   {
     rolearn  = "arn:aws:iam::66666666666:role/role1"
     username = "role1"
     groups   = ["system:masters"]
   },
 ]
 aws_auth_users = [
   {
     userarn  = "arn:aws:iam::66666666666:user/user1"
     username = "user1"
     groups   = ["system:masters"]
   },
   {
     userarn  = "arn:aws:iam::66666666666:user/user2"
     username = "user2"
     groups   = ["system:masters"]
   },
 ]



Related

See also

Advertising: