mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-04-21 08:11:17 +02:00
Use kubernetes provider to manage aws auth (#355)
This commit changes the way aws auth is managed. Before a local file was used the generate the template and a null resource to apply it. This is now switched to the terraform kubernetes provider.
This commit is contained in:
committed by
Max Williams
parent
b69c8fb759
commit
9363662574
@@ -1,19 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: aws-auth
|
||||
namespace: kube-system
|
||||
data:
|
||||
mapRoles: |
|
||||
${worker_role_arn}
|
||||
%{if chomp(map_roles) != "[]" }
|
||||
${indent(4, map_roles)}
|
||||
%{ endif }
|
||||
%{if chomp(map_users) != "[]" }
|
||||
mapUsers: |
|
||||
${indent(4, map_users)}
|
||||
%{ endif }
|
||||
%{if chomp(map_accounts) != "[]" }
|
||||
mapAccounts: |
|
||||
${indent(4, map_accounts)}
|
||||
%{ endif }
|
||||
@@ -1,8 +1,8 @@
|
||||
- rolearn: ${worker_role_arn}
|
||||
username: system:node:{{EC2PrivateDNSName}}
|
||||
groups:
|
||||
- system:bootstrappers
|
||||
- system:nodes
|
||||
%{~ if platform == "windows" ~}
|
||||
- eks:kube-proxy-windows
|
||||
%{~ endif ~}
|
||||
- rolearn: ${worker_role_arn}
|
||||
username: system:node:{{EC2PrivateDNSName}}
|
||||
groups:
|
||||
- system:bootstrappers
|
||||
- system:nodes
|
||||
%{~ if platform == "windows" ~}
|
||||
- eks:kube-proxy-windows
|
||||
%{~ endif ~}
|
||||
|
||||
Reference in New Issue
Block a user