shamimice03 / terraform-aws-eks-irsa

Terraform module for EKS IRSA

Home Page:https://registry.terraform.io/modules/shamimice03/eks-irsa/aws/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IAM Role for Service Account (IRSA)

Usage

  
module "irsa" {
    source = "shamimice03/eks-irsa/aws"
    
    create            = true
    cluster_name      = "eks-cluster"
    oidc_provider_arn = "arn:aws:iam::396778319547:oidc-provider/oidc.eks.ap-northeast-1.amazonaws.com/id/B7AF2E49EC3KK282BAFAFD95B24CA053"
    irsa_role_name    = "AWSLoadBalancerControllerRole"
    iam_policy_arn    = "arn:aws:iam::391178969547:policy/AWS-LoadBalancer-Controller-Policy"
    
    namespace = {
      create_new = false,
      name       = "kube-system"
    }
    serviceaccount = {
      create_new = true,
      name       = "aws-lb-controller-sa"
    }
}

Variables

Variable Type Description Default
create bool Enable or Disable IRSA true
cluster_name string Name of the EKS cluster null
oidc_provider_arn string ARN of the EKS OIDC Provider null
irsa_role_name string Name of the irsa role null
namespace map(any) Enter Namespace { "create_new" = false, "name" = null }
serviceaccount map(any) Enter service account name { "create_new" = false, "name" = null }
iam_policy_arn string ARN of the IAM Policy to be attached null

License

GPLv3 License

About

Terraform module for EKS IRSA

https://registry.terraform.io/modules/shamimice03/eks-irsa/aws/latest

License:GNU General Public License v3.0


Languages

Language:HCL 100.0%