You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will need the standard AWS environment variables to be set, e.g.
3
+
This example shows how to use the Terraform Kubernetes Provider and Terraform Helm Provider to configure an EKS cluster. The example builds the EKS cluster and applies the Kubernetes configurations in a single operation.
4
+
5
+
You will need the following environment variables to be set:
4
6
5
7
-`AWS_ACCESS_KEY_ID`
6
8
-`AWS_SECRET_ACCESS_KEY`
7
9
8
-
See [AWS Provider docs](https://www.terraform.io/docs/providers/aws/index.html#configuration-reference) for more details about these variables
9
-
and alternatives, like `AWS_PROFILE`.
10
+
See [AWS Provider docs](https://www.terraform.io/docs/providers/aws/index.html#configuration-reference) for more details about these variables and alternatives, like `AWS_PROFILE`.
11
+
12
+
To install the EKS cluster using default values, run terraform init and apply from the directory containing this README.
13
+
14
+
```
15
+
terraform init
16
+
terraform apply
17
+
```
10
18
11
-
## Versions
19
+
Optionally, the Kubernetes version can also be specified:
12
20
13
-
You can set the desired version of Kubernetes via the `kubernetes_version` TF variable.
21
+
```
22
+
terraform apply -var=kubernetes_version=1.18
23
+
```
14
24
15
25
See https://docs.aws.amazon.com/eks/latest/userguide/platform-versions.html for currently available versions.
16
26
17
-
You can set the desired version of Kubernetes via the `kubernetes_version` TF variable, like this:
27
+
## Kubeconfig for manual CLI access
28
+
29
+
This example generates a kubeconfig file in the current working directory. However, the token in this config expires in 15 minutes. I can be refreshed by running `terraform apply` again. Export the KUBECONFIG to manually access the cluster.
0 commit comments