Skip to content

Latest commit

 

History

History
173 lines (140 loc) · 3.46 KB

oci_load_balancer_certificate.md

File metadata and controls

173 lines (140 loc) · 3.46 KB

oci_load_balancer_certificate

back

Index

Terraform

terraform {
  required_providers {
    oci = ">= 4.21.0"
  }
}

top

Example Usage

module "oci_load_balancer_certificate" {
  source = "./modules/oci/r/oci_load_balancer_certificate"

  # ca_certificate - (optional) is a type of string
  ca_certificate = null
  # certificate_name - (required) is a type of string
  certificate_name = null
  # load_balancer_id - (required) is a type of string
  load_balancer_id = null
  # passphrase - (optional) is a type of string
  passphrase = null
  # private_key - (optional) is a type of string
  private_key = null
  # public_certificate - (optional) is a type of string
  public_certificate = null

  timeouts = [{
    create = null
    delete = null
    update = null
  }]
}

top

Variables

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

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

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

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

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

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

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
      delete = string
      update = string
    }
  ))
  default = []
}

top

Resource

resource "oci_load_balancer_certificate" "this" {
  # ca_certificate - (optional) is a type of string
  ca_certificate = var.ca_certificate
  # certificate_name - (required) is a type of string
  certificate_name = var.certificate_name
  # load_balancer_id - (required) is a type of string
  load_balancer_id = var.load_balancer_id
  # passphrase - (optional) is a type of string
  passphrase = var.passphrase
  # private_key - (optional) is a type of string
  private_key = var.private_key
  # public_certificate - (optional) is a type of string
  public_certificate = var.public_certificate

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # create - (optional) is a type of string
      create = timeouts.value["create"]
      # delete - (optional) is a type of string
      delete = timeouts.value["delete"]
      # update - (optional) is a type of string
      update = timeouts.value["update"]
    }
  }

}

top

Outputs

output "ca_certificate" {
  description = "returns a string"
  value       = oci_load_balancer_certificate.this.ca_certificate
}

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

output "private_key" {
  description = "returns a string"
  value       = oci_load_balancer_certificate.this.private_key
  sensitive   = true
}

output "public_certificate" {
  description = "returns a string"
  value       = oci_load_balancer_certificate.this.public_certificate
}

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

output "this" {
  value = oci_load_balancer_certificate.this
}

top