Skip to content

Latest commit

 

History

History
128 lines (99 loc) · 2.4 KB

File metadata and controls

128 lines (99 loc) · 2.4 KB

google_secret_manager_secret_version

back

Index

Terraform

terraform {
  required_providers {
    google-beta = ">= 3.63.0"
  }
}

top

Example Usage

module "google_secret_manager_secret_version" {
  source = "./modules/google-beta/d/google_secret_manager_secret_version"

  # project - (optional) is a type of string
  project = null
  # secret - (required) is a type of string
  secret = null
  # version - (optional) is a type of string
  version = null
}

top

Variables

variable "project" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "secret" {
  description = "(required)"
  type        = string
}

variable "version" {
  description = "(optional)"
  type        = string
  default     = null
}

top

Datasource

data "google_secret_manager_secret_version" "this" {
  # project - (optional) is a type of string
  project = var.project
  # secret - (required) is a type of string
  secret = var.secret
  # version - (optional) is a type of string
  version = var.version
}

top

Outputs

output "create_time" {
  description = "returns a string"
  value       = data.google_secret_manager_secret_version.this.create_time
}

output "destroy_time" {
  description = "returns a string"
  value       = data.google_secret_manager_secret_version.this.destroy_time
}

output "enabled" {
  description = "returns a bool"
  value       = data.google_secret_manager_secret_version.this.enabled
}

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

output "name" {
  description = "returns a string"
  value       = data.google_secret_manager_secret_version.this.name
}

output "project" {
  description = "returns a string"
  value       = data.google_secret_manager_secret_version.this.project
}

output "secret_data" {
  description = "returns a string"
  value       = data.google_secret_manager_secret_version.this.secret_data
  sensitive   = true
}

output "version" {
  description = "returns a string"
  value       = data.google_secret_manager_secret_version.this.version
}

output "this" {
  value = google_secret_manager_secret_version.this
}

top