mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-30 22:21:50 +02:00
allow specifying an IAM role for each worker group (#137)
* allow creating an IAM role for each worker group * moved change from 'changed' to 'added' * create multiple roles not just profiles * fix config_map_aws_auth generation * don't duplicate worker-role templating * specify ARNs for worker groups individually todo fix aws_auth configmap * fixed AWS auth * fix aws_iam_instance_profile.workers name fix iam_instance_profile fallback * fix outputs * fix iam_instance_profile calculation * hopefully fix aws auth configmap generation * manually fill out remainder of arn * remove depends_on in worker_role_arns template file this was causing resources to be recreated every time * fmt * fix typo, move iam_role_id default to defaults map
This commit is contained in:
committed by
Max Williams
parent
b6f6a82352
commit
b623bc234a
@@ -5,11 +5,7 @@ metadata:
|
||||
namespace: kube-system
|
||||
data:
|
||||
mapRoles: |
|
||||
- rolearn: ${worker_role_arn}
|
||||
username: system:node:{{EC2PrivateDNSName}}
|
||||
groups:
|
||||
- system:bootstrappers
|
||||
- system:nodes
|
||||
${worker_role_arn}
|
||||
${map_roles}
|
||||
mapUsers: |
|
||||
${map_users}
|
||||
|
||||
5
templates/worker-role.tpl
Normal file
5
templates/worker-role.tpl
Normal file
@@ -0,0 +1,5 @@
|
||||
- rolearn: ${worker_role_arn}
|
||||
username: system:node:{{EC2PrivateDNSName}}
|
||||
groups:
|
||||
- system:bootstrappers
|
||||
- system:nodes
|
||||
Reference in New Issue
Block a user