mirror of
https://github.com/ysoftdevs/terraform-aws-eks.git
synced 2026-01-16 00:34:31 +01:00
* 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
63 lines
1.3 KiB
HCL
63 lines
1.3 KiB
HCL
variable "region" {
|
|
default = "us-west-2"
|
|
}
|
|
|
|
variable "map_accounts" {
|
|
description = "Additional AWS account numbers to add to the aws-auth configmap."
|
|
type = "list"
|
|
|
|
default = [
|
|
"777777777777",
|
|
"888888888888",
|
|
]
|
|
}
|
|
|
|
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"
|
|
|
|
default = [
|
|
{
|
|
role_arn = "arn:aws:iam::66666666666:role/role1"
|
|
username = "role1"
|
|
group = "system:masters"
|
|
},
|
|
]
|
|
}
|
|
|
|
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"
|
|
|
|
default = [
|
|
{
|
|
user_arn = "arn:aws:iam::66666666666:user/user1"
|
|
username = "user1"
|
|
group = "system:masters"
|
|
},
|
|
{
|
|
user_arn = "arn:aws:iam::66666666666:user/user2"
|
|
username = "user2"
|
|
group = "system:masters"
|
|
},
|
|
]
|
|
}
|
|
|
|
variable "map_users_count" {
|
|
description = "The count of roles in the map_users list."
|
|
type = "string"
|
|
default = 2
|
|
}
|