Terraform module to create Kubeconfig YAML
Name | Version |
---|---|
terraform | >= 1.0.0 |
No providers.
No modules.
No resources.
Name | Description | Type | Default | Required |
---|---|---|---|---|
client_authentication_api_version | Client authentication API version | string |
"client.authentication.k8s.io/v1beta1" |
no |
cluster_certificate_authority_data | Cluster certificate authority data | string |
n/a | yes |
cluster_endpoint | Cluster API endpoint | string |
n/a | yes |
cluster_name | Cluster name | string |
n/a | yes |
create_default_eks_kubeconfig | Set to true to create a KUBECONFIG suitable for EKS. Note, if this is set to true, then these variables must also be set: eks_aws_account_id, eks_aws_region | bool |
false |
no |
eks_aws_profile | AWS profile that should be used to request the EKS token for authentication. Only used if create_default_eks_kubeconfig is set to true | string |
null |
no |
eks_aws_region | AWS region that the EKS cluster is in. Only used if create_default_eks_kubeconfig is set to true | string |
null |
no |
eks_get_token_aws_role_arn | AWS IAM role ARN that should be used to request the EKS token for authentication. Only used if create_default_eks_kubeconfig is set to true | string |
null |
no |
exec_args | Arguments to command to run to retrieve token. Value of .users[0].user.exec.args | list(string) |
null |
no |
exec_command | Command to run to retrieve token. Value of .users[0].user.exec.command | string |
null |
no |
exec_env | Environment variables for command to run to retrieve token. Value of .users[0].user.exec.env | map(string) |
null |
no |
Name | Description |
---|---|
kubeconfig_base64 | Kubeconfig YAML base64 encoded |
kubeconfig_map | Kubeconfig as a Terraform map |
kubeconfig_yaml | Kubeconfig YAML |