Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gearnode/terraform-kubernetes-get-secret
Terraform module to get value in Kubernetes secrets store
https://github.com/gearnode/terraform-kubernetes-get-secret
kubernetes kubernetes-secrets secret-management terraform terraform-modules
Last synced: 5 days ago
JSON representation
Terraform module to get value in Kubernetes secrets store
- Host: GitHub
- URL: https://github.com/gearnode/terraform-kubernetes-get-secret
- Owner: gearnode
- License: mit
- Created: 2018-03-03T13:45:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-22T14:42:59.000Z (about 4 years ago)
- Last Synced: 2024-10-11T07:41:42.073Z (28 days ago)
- Topics: kubernetes, kubernetes-secrets, secret-management, terraform, terraform-modules
- Language: Go
- Homepage: https://registry.terraform.io/modules/gearnode/get-secret/kubernetes
- Size: 88.6 MB
- Stars: 3
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Module: Get Kubernetes Secret Value
> This repository is a [Terraform](https://terraform.io/) Module to use Kubernetes secrets as data.
## Table of Contents
- [Requirements](#requirements)
- [Dependencies](#dependencies)
- [Usage](#usage)
- [Module Variables](#module-variables)
- [Contributing](#contributing)
- [Maintainers](#maintainers)## Requirements
This module requires Terraform version `0.10.x` or newer and a valid out-of-cluster Kubernetes configuration at the default path (`$HOME/.kube/config`) or the path defined by `$KUBECONFIG`.
## Usage
Add the module to your Terraform resources:
```hcl
module "rds-postgres-password" {
source = "github.com/gearnode/terraform-kubernetes-get-secret?ref=v0.3.1"namespace = "default"
name = "terraform"
key = "database-password"
context = "supercontext"
}
```and load the module using `terraform get`.
### Module Variables
Available variables are listed below, along with their default values:
| variable | description |
|-------------|----------------------------------|
| `namespace` | The kubernetes namespace |
| `name` | The kubernetes secret name |
| `key` | The kubernetes secret key to get |
| `context` | The kubernetes context |### Module outputs
Available outputs are listed below, along with their description:
| output | description |
|-----------|-------------------------------|
| `result` | A string of the secret value. |## Contributing
### Requirements
- fully installed and configured `go` environment
### Contributing code
To build binaries, use the following commands:
```
$ git clone [email protected]:gearnode/terraform-kubernetes-get-secret.git
$ cd terraform-kubernetes-get-secret
$ make
```## Maintainers
This module is currently maintained by the individuals listed below.
- [Bryan Frimin](https://github.com/gearnode)
- [Ludovic Vielle](https://github.com/lukkor)