Skip to content

Latest commit

 

History

History
97 lines (73 loc) · 1.52 KB

File metadata and controls

97 lines (73 loc) · 1.52 KB

ecl_baremetal_keypair_v2

back

Index

Terraform

terraform {
  required_providers {
    ecl = ">= 2.0.0"
  }
}

top

Example Usage

module "ecl_baremetal_keypair_v2" {
  source = "./modules/ecl/r/ecl_baremetal_keypair_v2"

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

top

Variables

variable "name" {
  description = "(required)"
  type        = string
}

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

top

Resource

resource "ecl_baremetal_keypair_v2" "this" {
  # name - (required) is a type of string
  name = var.name
  # public_key - (optional) is a type of string
  public_key = var.public_key
}

top

Outputs

output "fingerprint" {
  description = "returns a string"
  value       = ecl_baremetal_keypair_v2.this.fingerprint
}

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

output "private_key" {
  description = "returns a string"
  value       = ecl_baremetal_keypair_v2.this.private_key
}

output "public_key" {
  description = "returns a string"
  value       = ecl_baremetal_keypair_v2.this.public_key
}

output "this" {
  value = ecl_baremetal_keypair_v2.this
}

top