File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,7 @@ module "eks" {
108108 manage_aws_auth_configmap = var. manage_aws_auth_configmap
109109 aws_auth_users = var. aws_auth_users
110110 aws_auth_accounts = var. aws_auth_accounts
111+ aws_auth_roles = var. aws_auth_roles
111112 tags = var. tags
112113 backend_app_port = var. backend_app_port
113114 rds_port = var. rds_port
Original file line number Diff line number Diff line change @@ -100,13 +100,13 @@ module "eks" {
100100 create_aws_auth_configmap = var. create_aws_auth_configmap
101101 manage_aws_auth_configmap = var. manage_aws_auth_configmap
102102
103- aws_auth_roles = [
103+ aws_auth_roles = concat ( [
104104 {
105105 rolearn = aws_iam_role.eks_cluster_role.arn
106106 username = " eks_cluster_role"
107107 groups = [" system:masters" ]
108108 },
109- ]
109+ ], var . aws_auth_roles )
110110
111111 aws_auth_users = var. aws_auth_users
112112 aws_auth_accounts = var. aws_auth_accounts
Original file line number Diff line number Diff line change @@ -93,6 +93,11 @@ variable "aws_auth_accounts" {
9393 default = []
9494}
9595
96+ variable "aws_auth_roles" {
97+ type = list (any )
98+ default = []
99+ }
100+
96101variable "tags" {
97102 type = any
98103 default = {}
Original file line number Diff line number Diff line change @@ -525,6 +525,12 @@ variable "aws_auth_accounts" {
525525 description = " List of account maps to add to the aws-auth configmap"
526526}
527527
528+ variable "aws_auth_roles" {
529+ type = list (any )
530+ default = []
531+ description = " List of role maps to add to the aws-auth configmap"
532+ }
533+
528534variable "tags" {
529535 type = any
530536 default = {}
You can’t perform that action at this time.
0 commit comments