Terraform Modular EKS + Istio β Part 2
IAM Module (IRSA, OIDC, and Why This Controls Everything) In the previous part, we built the VPC. Now we move to something that causes the most confusion in EKS setups: π IAM This is not just βper...

Source: DEV Community
IAM Module (IRSA, OIDC, and Why This Controls Everything) In the previous part, we built the VPC. Now we move to something that causes the most confusion in EKS setups: π IAM This is not just βpermissionsβ. This module controls: how EKS works how nodes behave how pods access AWS services If this is wrong: ALB wonβt work CSI drivers fail Pods canβt access AWS Debugging becomes painful π Module Files modules/iam/ βββ main.tf βββ variables.tf βββ outputs.tf π variables.tf variable "cluster_name" { description = "Name of the EKS cluster" type = string } variable "oidc_provider_arn" { description = "ARN of the OIDC provider" type = string } variable "oidc_provider" { description = "OIDC provider URL" type = string } π§ What these inputs mean cluster_name β used to name roles oidc_provider_arn β comes from EKS module oidc_provider β used for IRSA condition matching π Important: This module depends on EKS Because OIDC is created inside the EKS module. π main.tf (Core IAM Logic) 1. EKS Cl