Skip to content

Latest commit

 

History

History
91 lines (68 loc) · 1.45 KB

vault_nomad_access_token.md

File metadata and controls

91 lines (68 loc) · 1.45 KB

vault_nomad_access_token

back

Index

Terraform

terraform {
  required_providers {
    vault = ">= 2.19.0"
  }
}

top

Example Usage

module "vault_nomad_access_token" {
  source = "./modules/vault/d/vault_nomad_access_token"

  # backend - (required) is a type of string
  backend = null
  # role - (required) is a type of string
  role = null
}

top

Variables

variable "backend" {
  description = "(required) - Nomad secret backend to generate tokens from."
  type        = string
}

variable "role" {
  description = "(required) - Name of the role."
  type        = string
}

top

Datasource

data "vault_nomad_access_token" "this" {
  # backend - (required) is a type of string
  backend = var.backend
  # role - (required) is a type of string
  role = var.role
}

top

Outputs

output "accessor_id" {
  description = "returns a string"
  value       = data.vault_nomad_access_token.this.accessor_id
}

output "id" {
  description = "returns a string"
  value       = data.vault_nomad_access_token.this.id
}

output "secret_id" {
  description = "returns a string"
  value       = data.vault_nomad_access_token.this.secret_id
}

output "this" {
  value = vault_nomad_access_token.this
}

top