Skip to content

Latest commit

 

History

History
102 lines (79 loc) · 1.76 KB

File metadata and controls

102 lines (79 loc) · 1.76 KB

exoscale_compute_ipaddress

back

Index

Terraform

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

top

Example Usage

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

  # description - (optional) is a type of string
  description = null
  # ip_address - (optional) is a type of string
  ip_address = null
  # tags - (optional) is a type of map of string
  tags = {}
  # zone - (required) is a type of string
  zone = null
}

top

Variables

variable "description" {
  description = "(optional) - Description of the Elastic IP"
  type        = string
  default     = null
}

variable "ip_address" {
  description = "(optional) - IP Address"
  type        = string
  default     = null
}

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

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

top

Datasource

data "exoscale_compute_ipaddress" "this" {
  # description - (optional) is a type of string
  description = var.description
  # ip_address - (optional) is a type of string
  ip_address = var.ip_address
  # tags - (optional) is a type of map of string
  tags = var.tags
  # zone - (required) is a type of string
  zone = var.zone
}

top

Outputs

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

output "this" {
  value = exoscale_compute_ipaddress.this
}

top