Skip to content

Commit

Permalink
fix: iam
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusohxevant committed Dec 8, 2024
1 parent 2ca1f42 commit d1ef175
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
8 changes: 4 additions & 4 deletions backend.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
terraform {
backend "s3" {
# bucket = "tfstate-personal"
# region = "us-west-1"
# dynamodb_table = "tfstate-personal"
# key = "terraform.tfstate"
bucket = "tfstate-personal"
region = "us-west-1"
dynamodb_table = "tfstate-personal"
key = "terraform.tfstate"
}
}
46 changes: 23 additions & 23 deletions tf_aws_eks/helm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,34 @@ provider "helm" {
}
}

# resource "helm_release" "aws-load-balancer-controler" {
# name = "aws-load-balancer-controller"
resource "helm_release" "aws-load-balancer-controler" {
name = "aws-load-balancer-controller"

# repository = "https://aws.github.io/eks-charts"
# chart = "aws-load-balancer-controller"
# namespace = "kube-system"
# version = "1.4.1"
repository = "https://aws.github.io/eks-charts"
chart = "aws-load-balancer-controller"
namespace = "kube-system"
version = "1.4.1"

# set {
# name = "clusterName"
# value = aws_eks_cluster.eks-cluster.id
# }
set {
name = "clusterName"
value = aws_eks_cluster.eks-cluster.id
}

# set {
# name = "image.tag"
# value = "v2.4.2"
# }
set {
name = "image.tag"
value = "v2.4.2"
}

# set {
# name = "serviceAccount.name"
# value = "aws-load-balancer-controller"
# }
set {
name = "serviceAccount.name"
value = "aws-load-balancer-controller"
}

# set {
# name = "serviceAccount.annotations.eks\\.amazonaws\\.com/role-arn"
# value = aws_iam_role.aws_load_balancer_controller.arn
# }
# }
set {
name = "serviceAccount.annotations.eks\\.amazonaws\\.com/role-arn"
value = aws_iam_role.aws_load_balancer_controller.arn
}
}

resource "helm_release" "karpenter" {
count = var.deploy_karpenter ? 1 : 0
Expand Down

0 comments on commit d1ef175

Please sign in to comment.