Skip to content

Latest commit

 

History

History
97 lines (74 loc) · 1.56 KB

File metadata and controls

97 lines (74 loc) · 1.56 KB

exoscale_compute_template

back

Index

Terraform

terraform {
  required_providers {
    exoscale = ">= 0.23.0"
  }
}

top

Example Usage

module "exoscale_compute_template" {
  source = "./modules/exoscale/d/exoscale_compute_template"

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

top

Variables

variable "filter" {
  description = "(optional) - Template filter to apply"
  type        = string
  default     = null
}

variable "name" {
  description = "(optional) - Name of the template"
  type        = string
  default     = null
}

variable "zone" {
  description = "(required) - Name of the zone"
  type        = string
}

top

Datasource

data "exoscale_compute_template" "this" {
  # filter - (optional) is a type of string
  filter = var.filter
  # name - (optional) is a type of string
  name = var.name
  # zone - (required) is a type of string
  zone = var.zone
}

top

Outputs

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

output "username" {
  description = "returns a string"
  value       = data.exoscale_compute_template.this.username
}

output "this" {
  value = exoscale_compute_template.this
}

top