mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-03-18 15:33:46 +01:00
Supply count for map_accounts, map_roles and map_users (#205)
* Added map_roles_count and user_roles_count (#1) * Update readme for new vars * updated tests to include count * fix syntax error * updated changelog * Added map_accounts_count variable for consistency * Fix counts in example and user latest terraform-docs to generate readme
This commit is contained in:
committed by
Max Williams
parent
37f18c17c9
commit
1822a677dc
@@ -136,6 +136,9 @@ module "eks" {
|
||||
worker_group_count = "2"
|
||||
worker_additional_security_group_ids = ["${aws_security_group.all_worker_mgmt.id}"]
|
||||
map_roles = "${var.map_roles}"
|
||||
map_roles_count = "${var.map_roles_count}"
|
||||
map_users = "${var.map_users}"
|
||||
map_users_count = "${var.map_users_count}"
|
||||
map_accounts = "${var.map_accounts}"
|
||||
map_accounts_count = "${var.map_accounts_count}"
|
||||
}
|
||||
|
||||
@@ -12,6 +12,12 @@ variable "map_accounts" {
|
||||
]
|
||||
}
|
||||
|
||||
variable "map_accounts_count" {
|
||||
description = "The count of accounts in the map_accounts list."
|
||||
type = "string"
|
||||
default = 2
|
||||
}
|
||||
|
||||
variable "map_roles" {
|
||||
description = "Additional IAM roles to add to the aws-auth configmap."
|
||||
type = "list"
|
||||
@@ -25,6 +31,12 @@ variable "map_roles" {
|
||||
]
|
||||
}
|
||||
|
||||
variable "map_roles_count" {
|
||||
description = "The count of roles in the map_roles list."
|
||||
type = "string"
|
||||
default = 1
|
||||
}
|
||||
|
||||
variable "map_users" {
|
||||
description = "Additional IAM users to add to the aws-auth configmap."
|
||||
type = "list"
|
||||
@@ -42,3 +54,9 @@ variable "map_users" {
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
variable "map_users_count" {
|
||||
description = "The count of roles in the map_users list."
|
||||
type = "string"
|
||||
default = 2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user