Skip to content

Latest commit

 

History

History
101 lines (77 loc) · 1.76 KB

File metadata and controls

101 lines (77 loc) · 1.76 KB

google_secret_manager_secret_iam_policy

back

Index

Terraform

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

top

Example Usage

module "google_secret_manager_secret_iam_policy" {
  source = "./modules/google-beta/r/google_secret_manager_secret_iam_policy"

  # policy_data - (required) is a type of string
  policy_data = null
  # project - (optional) is a type of string
  project = null
  # secret_id - (required) is a type of string
  secret_id = null
}

top

Variables

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

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

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

top

Resource

resource "google_secret_manager_secret_iam_policy" "this" {
  # policy_data - (required) is a type of string
  policy_data = var.policy_data
  # project - (optional) is a type of string
  project = var.project
  # secret_id - (required) is a type of string
  secret_id = var.secret_id
}

top

Outputs

output "etag" {
  description = "returns a string"
  value       = google_secret_manager_secret_iam_policy.this.etag
}

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

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

output "this" {
  value = google_secret_manager_secret_iam_policy.this
}

top