Code Monkey home page Code Monkey logo

terraform-kubernetes-get-secret's Introduction

Terraform Module: Get Kubernetes Secret Value

This repository is a Terraform Module to use Kubernetes secrets as data.

Table of Contents

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:

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.

terraform-kubernetes-get-secret's People

Contributors

gearnode avatar lukkor avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.