Skip to content

Commit

Permalink
Add warning about mixing provider credentials with exec blocks (hashi…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsomesan authored Feb 13, 2024
1 parent 408d1a9 commit fc5b9ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/docs/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ Find more comprehensive `in-cluster` config example [here](https://github.com/ha

## Exec plugins

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:
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:

~> 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.

```hcl
provider "kubernetes" {
Expand Down

0 comments on commit fc5b9ed

Please sign in to comment.