Skip to content

Latest commit

 

History

History
132 lines (104 loc) · 2.59 KB

File metadata and controls

132 lines (104 loc) · 2.59 KB

google_compute_backend_service_signed_url_key

back

Index

Terraform

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

top

Example Usage

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

  # backend_service - (required) is a type of string
  backend_service = null
  # key_value - (required) is a type of string
  key_value = null
  # name - (required) is a type of string
  name = null
  # project - (optional) is a type of string
  project = null

  timeouts = [{
    create = null
    delete = null
  }]
}

top

Variables

variable "backend_service" {
  description = "(required) - The backend service this signed URL key belongs."
  type        = string
}

variable "key_value" {
  description = "(required) - 128-bit key value used for signing the URL. The key value must be a\nvalid RFC 4648 Section 5 base64url encoded string."
  type        = string
}

variable "name" {
  description = "(required) - Name of the signed URL key."
  type        = string
}

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

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
      delete = string
    }
  ))
  default = []
}

top

Resource

resource "google_compute_backend_service_signed_url_key" "this" {
  # backend_service - (required) is a type of string
  backend_service = var.backend_service
  # key_value - (required) is a type of string
  key_value = var.key_value
  # name - (required) is a type of string
  name = var.name
  # project - (optional) is a type of string
  project = var.project

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # create - (optional) is a type of string
      create = timeouts.value["create"]
      # delete - (optional) is a type of string
      delete = timeouts.value["delete"]
    }
  }

}

top

Outputs

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

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

output "this" {
  value = google_compute_backend_service_signed_url_key.this
}

top