Skip to content

Latest commit

 

History

History
116 lines (90 loc) · 1.97 KB

File metadata and controls

116 lines (90 loc) · 1.97 KB

google_compute_disk_iam_policy

back

Index

Terraform

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

top

Example Usage

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

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

top

Variables

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

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

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

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

top

Resource

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

top

Outputs

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

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

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

output "zone" {
  description = "returns a string"
  value       = google_compute_disk_iam_policy.this.zone
}

output "this" {
  value = google_compute_disk_iam_policy.this
}

top