Skip to content

Latest commit

 

History

History
138 lines (106 loc) · 2.44 KB

File metadata and controls

138 lines (106 loc) · 2.44 KB

exoscale_compute

back

Index

Terraform

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

top

Example Usage

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

  # hostname - (optional) is a type of string
  hostname = null
  # tags - (optional) is a type of map of string
  tags = {}
}

top

Variables

variable "hostname" {
  description = "(optional) - Hostname of the Compute instance"
  type        = string
  default     = null
}

variable "tags" {
  description = "(optional) - Map of tags (key: value)"
  type        = map(string)
  default     = null
}

top

Datasource

data "exoscale_compute" "this" {
  # hostname - (optional) is a type of string
  hostname = var.hostname
  # tags - (optional) is a type of map of string
  tags = var.tags
}

top

Outputs

output "cpu" {
  description = "returns a number"
  value       = data.exoscale_compute.this.cpu
}

output "created" {
  description = "returns a string"
  value       = data.exoscale_compute.this.created
}

output "disk_size" {
  description = "returns a number"
  value       = data.exoscale_compute.this.disk_size
}

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

output "ip6_address" {
  description = "returns a string"
  value       = data.exoscale_compute.this.ip6_address
}

output "ip_address" {
  description = "returns a string"
  value       = data.exoscale_compute.this.ip_address
}

output "memory" {
  description = "returns a number"
  value       = data.exoscale_compute.this.memory
}

output "private_network_ip_addresses" {
  description = "returns a list of string"
  value       = data.exoscale_compute.this.private_network_ip_addresses
}

output "size" {
  description = "returns a string"
  value       = data.exoscale_compute.this.size
}

output "state" {
  description = "returns a string"
  value       = data.exoscale_compute.this.state
}

output "template" {
  description = "returns a string"
  value       = data.exoscale_compute.this.template
}

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

output "this" {
  value = exoscale_compute.this
}

top