kubectl-cmd

agseijas/kubectl-cmd/kubernetes

Terraform Module HCL KUBERNETES

Terraform kubectl-cmd

Install
module "kubectl-cmd" {
source = "agseijas/kubectl-cmd/kubernetes"
version = "1.2.5"
}
plain text: /constructs/tfmod-agseijas-kubectl-cmd-kubernetes/install.txt
⭐ Source on GitHub 📦 Registry page
README

kubectl-cmd Terraform module which launches kubectl commands from a shell using terraform kubernetes provider credentials, see /test//main.tf and test//provider.tf for some AWS with EKS based examples on how to configure. Allows using manually forged custom kubeconfig files too. Basically requires these variables for setting up the kubernetes provider: - Host/endpoint (non-sensitive) - ca-certificate (non-sensitive) - token (sensitive) Since there are sensitive values, the output will be marked as sensitive and won't show. It's therefore not recommended to use this module with terraform versions which don't implement sensitive values handling (so use this module only from TF 1.0+). Usage You might configure a list of (by default: bash-based) scripts with kubectl commands to be launched in

Inputs (10)
NameTypeDescriptionDefault
cmdslist(string)Command(s) which will ultimately contain a `kubectl` command execution required
appstringThe console-log output file names will use this app name variable. Ex. for `myap required
cluster-namestringName of the k8s cluster to connect to. Ex. for a k8s cluster named `my-cluster-h required
ca-certificatestringDeprecated, please use the equivalent credentials.ca-certificate var. This will null
credentialsobject({ token: optional(oCurrently only supports token and kubeconfig-path{}
tokenstringDeprecated, please use the equivalent credentials.token.* var. This will be remonull
destroy-cmdslist(string)Commands to execute during the destroy phase of the terraform module, using kube[ "" ]
endpointstringDeprecated, please use the equivalent credentials.token.* var. This will be remonull
interpreterlistProvide a different than default ('/bin/bash') interpreter.[ "/bin/bash", "-c" ]
always-applybooltrue
Outputs (3)
logfile-name
logfile-destroy-name
deprecation_warning
Resources (1)
null_resource
Details
FrameworkTerraform Module
LanguageHCL
Version1.2.5
Cloud KUBERNETES
★ Stars3
Forks2
Total downloads4.5k
Inputs10
Outputs3
Resources1
LicenseGPL-3.0
Namespaceagseijas
Updated