Skip to content

Commit fc5b9ed

Browse files
authored
Add warning about mixing provider credentials with exec blocks (#2422)
1 parent 408d1a9 commit fc5b9ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

website/docs/index.html.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ Find more comprehensive `in-cluster` config example [here](https://github.com/ha
116116

117117
## Exec plugins
118118

119-
Some cloud providers have short-lived authentication tokens that can expire relatively quickly. To ensure the Kubernetes provider is receiving valid credentials, an exec-based plugin can be used to fetch a new token before initializing the provider. For example, on EKS, the command `eks get-token` can be used:
119+
Some cloud providers have short-lived authentication tokens that can expire relatively quickly. To ensure the Kubernetes provider is receiving valid credentials, an exec-based plugin can be used to fetch a new token before each Terraform operation. For example, on EKS, the command `eks get-token` can be used:
120+
121+
~> IMPORTANT: DO NOT mix `exec` blocks with other credential attributes such as `token` or `client_certificate` in the provider configuration. This leads to undefined behaviour and there is no guarantee about which credential will actually be used.
120122

121123
```hcl
122124
provider "kubernetes" {

0 commit comments

Comments
 (0)