Skip to content

Commit 4312296

Browse files
Update castai.tf
1 parent 028ba1f commit 4312296

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

examples/eks/eks_cluster_readonly/castai.tf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
data "aws_caller_identity" "current" {}
55

66
provider "castai" {
7-
api_token = var.castai_api_token
87
api_url = var.castai_api_url
8+
api_token = var.castai_api_token
99
}
1010

1111
provider "helm" {
@@ -15,13 +15,18 @@ provider "helm" {
1515
exec = {
1616
api_version = "client.authentication.k8s.io/v1beta1"
1717
command = "aws"
18-
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name, "--region", var.cluster_region]
18+
args = [
19+
"eks", "get-token",
20+
"--cluster-name", module.eks.cluster_name,
21+
"--region", var.cluster_region
22+
]
1923
}
2024
}
2125
}
2226

2327

2428

29+
2530
# Configure EKS cluster connection to CAST AI in read-only mode.
2631
resource "castai_eks_cluster" "this" {
2732
account_id = data.aws_caller_identity.current.account_id

0 commit comments

Comments
 (0)