Skip to content

Commit d79ba24

Browse files
Update eks.tf
1 parent b21146e commit d79ba24

File tree

1 file changed

+7
-2
lines changed
  • examples/eks/eks_live_migration

1 file changed

+7
-2
lines changed

examples/eks/eks_live_migration/eks.tf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ data "kubernetes_endpoints_v1" "kubernetes_service" {
1515
}
1616

1717
provider "aws" {
18-
region = "eu-central-1" # Set the AWS region to EU Central (Frankfurt)
18+
region = "eu-central-1" # AWS region: EU Central (Frankfurt)
1919
}
2020

2121
provider "kubernetes" {
@@ -25,7 +25,11 @@ provider "kubernetes" {
2525
exec {
2626
api_version = "client.authentication.k8s.io/v1beta1"
2727
command = "aws"
28-
args = ["eks", "get-token", "--cluster-name", module.eks.cluster_name]
28+
args = [
29+
"eks", "get-token",
30+
"--cluster-name", module.eks.cluster_name,
31+
"--region", "eu-central-1"
32+
]
2933
}
3034
}
3135

@@ -38,6 +42,7 @@ provider "helm" {
3842
}
3943

4044

45+
4146
locals {
4247
vpc_cidr = "10.0.0.0/16"
4348
nfs_subnet = "10.0.99.0/24"

0 commit comments

Comments
 (0)