Skip to content

Latest commit

 

History

History
93 lines (71 loc) · 1.46 KB

File metadata and controls

93 lines (71 loc) · 1.46 KB

time_sleep

back

Index

Terraform

terraform {
  required_providers {
    time = ">= 0.7.0"
  }
}

top

Example Usage

module "time_sleep" {
  source = "./modules/time/r/time_sleep"

  # create_duration - (optional) is a type of string
  create_duration = null
  # destroy_duration - (optional) is a type of string
  destroy_duration = null
  # triggers - (optional) is a type of map of string
  triggers = {}
}

top

Variables

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

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

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

top

Resource

resource "time_sleep" "this" {
  # create_duration - (optional) is a type of string
  create_duration = var.create_duration
  # destroy_duration - (optional) is a type of string
  destroy_duration = var.destroy_duration
  # triggers - (optional) is a type of map of string
  triggers = var.triggers
}

top

Outputs

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

output "this" {
  value = time_sleep.this
}

top