Skip to content

Commit

Permalink
feat: Override service-account-name for aws-load-balancer-controller …
Browse files Browse the repository at this point in the history
…addon (aws-ia#1184)

Co-authored-by: Bryant Biggs <[email protected]>
Resolves undefined
resolves undefined
  • Loading branch information
nitrocode authored Nov 18, 2022
1 parent c5f6967 commit 9905c5c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions modules/kubernetes-addons/aws-load-balancer-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ Step 6: Run the following command to push this image to your newly created AWS r

Here is the link to get the AWS ELB [service annotations](https://kubernetes-sigs.github.io/aws-load-balancer-controller/latest/guide/service/annotations/) for LB Ingress controller

# IRSA is too long

If the IAM role is too long, override the service account name in the `helm_config` to create a shorter role name.

```hcl
enable_aws_load_balancer_controller = true
aws_load_balancer_controller_helm_config = {
service_account_name = "aws-lb-sa"
}
```

<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
## Requirements

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
name = "aws-load-balancer-controller"
service_account_name = "${local.name}-sa"
service_account_name = try(var.helm_config["service_account_name"], "${local.name}-sa")

# https://github.com/aws/eks-charts/blob/master/stable/aws-load-balancer-controller/Chart.yaml
default_helm_config = {
Expand Down

0 comments on commit 9905c5c

Please sign in to comment.