Skip to content

Latest commit

 

History

History
101 lines (77 loc) · 1.96 KB

fastly_tls_activation.md

File metadata and controls

101 lines (77 loc) · 1.96 KB

fastly_tls_activation

back

Index

Terraform

terraform {
  required_providers {
    fastly = ">= 0.28.1"
  }
}

top

Example Usage

module "fastly_tls_activation" {
  source = "./modules/fastly/r/fastly_tls_activation"

  # certificate_id - (required) is a type of string
  certificate_id = null
  # configuration_id - (optional) is a type of string
  configuration_id = null
  # domain - (required) is a type of string
  domain = null
}

top

Variables

variable "certificate_id" {
  description = "(required) - ID of certificate to use. Must have the `domain` specified in the certificate's Subject Alternative Names."
  type        = string
}

variable "configuration_id" {
  description = "(optional) - ID of TLS configuration to be used to terminate TLS traffic, or use the default one if missing."
  type        = string
  default     = null
}

variable "domain" {
  description = "(required) - Domain to enable TLS on. Must be assigned to an existing Fastly Service."
  type        = string
}

top

Resource

resource "fastly_tls_activation" "this" {
  # certificate_id - (required) is a type of string
  certificate_id = var.certificate_id
  # configuration_id - (optional) is a type of string
  configuration_id = var.configuration_id
  # domain - (required) is a type of string
  domain = var.domain
}

top

Outputs

output "configuration_id" {
  description = "returns a string"
  value       = fastly_tls_activation.this.configuration_id
}

output "created_at" {
  description = "returns a string"
  value       = fastly_tls_activation.this.created_at
}

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

output "this" {
  value = fastly_tls_activation.this
}

top