Skip to content

Commit f5c7f50

Browse files
Make boostrap manage aws-auth by default (#11)
* Make bootstrap manage aws auth configmap by default * Change bool value to a bool variable * terraform-docs: automated action * terraform-docs: automated action --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 81c4588 commit f5c7f50

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ No requirements.
1818

1919
| Name | Version |
2020
|------|---------|
21-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.55.0 |
21+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.56.0 |
2222
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | 2.18.1 |
2323

2424
## Modules
@@ -62,6 +62,7 @@ No requirements.
6262
| <a name="input_enable_bastion"></a> [enable\_bastion](#input\_enable\_bastion) | True if bastion host should be created | `bool` | `false` | no |
6363
| <a name="input_environment"></a> [environment](#input\_environment) | Environment name | `string` | n/a | yes |
6464
| <a name="input_logs_retention_days"></a> [logs\_retention\_days](#input\_logs\_retention\_days) | Log retention in days | `number` | `14` | no |
65+
| <a name="input_manage_aws_auth_configmap"></a> [manage\_aws\_auth\_configmap](#input\_manage\_aws\_auth\_configmap) | Should Terraform manage aws\_auth ConfigMap used for setting up cluster access | `bool` | `true` | no |
6566
| <a name="input_org"></a> [org](#input\_org) | Organization name - part of other resource names | `string` | `"terraform"` | no |
6667
| <a name="input_private_subnet_ids"></a> [private\_subnet\_ids](#input\_private\_subnet\_ids) | List of IDs of existing private subnets, only used when `create_vpc` is set to `false` | `list(string)` | `[]` | no |
6768
| <a name="input_public_subnet_ids"></a> [public\_subnet\_ids](#input\_public\_subnet\_ids) | List of IDs of existing public subnets, only used when `create_vpc` is set to `false` | `list(string)` | `[]` | no |

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module "eks" {
7777
fargate_profiles = var.eks_cluster_fargate_profiles
7878

7979
# aws-auth configmap
80-
manage_aws_auth_configmap = false
80+
manage_aws_auth_configmap = var.manage_aws_auth_configmap
8181
aws_auth_roles = var.eks_cluster_auth_role
8282
aws_auth_users = var.eks_cluster_auth_user
8383

variables.tf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ variable "eks_single_az" {
186186
default = false
187187
}
188188

189+
variable "manage_aws_auth_configmap" {
190+
description = "Should Terraform manage aws_auth ConfigMap used for setting up cluster access"
191+
type = bool
192+
default = true
193+
}
194+
189195
variable "create_vpc" {
190196
description = "Specifies if new VPC be created, if not `vpc_id` and `subnet_ids` variables need to be provided"
191197
type = bool
@@ -208,4 +214,4 @@ variable "public_subnet_ids" {
208214
description = "List of IDs of existing public subnets, only used when `create_vpc` is set to `false`"
209215
type = list(string)
210216
default = []
211-
}
217+
}

0 commit comments

Comments
 (0)