# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 terraform { required_version = "~> 1.1.7" required_providers { aws = { source = "hashicorp/aws" version = "3.68.0" } helm = { source = "hashicorp/helm" version = "~> 2.4.1" } local = { source = "hashicorp/local" version = "~> 2.1.0" } } } provider "helm" { kubernetes { host = data.aws_eks_cluster.eks.endpoint cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks.certificate_authority[0].data) exec { api_version = "client.authentication.k8s.io/v1alpha1" args = ["eks", "get-token", "--cluster-name", var.cluster_name] command = "aws" } } } provider "aws" { region = "ap-southeast-1" }