Skip to content

Instantly share code, notes, and snippets.

@Integralist
Created June 13, 2025 10:08
Show Gist options
  • Save Integralist/0c765162e5faf3c31a6378b087684d4f to your computer and use it in GitHub Desktop.
Save Integralist/0c765162e5faf3c31a6378b087684d4f to your computer and use it in GitHub Desktop.
Simple Fastly Terraform Subscription #tls #fastly #iac
terraform {
required_providers {
fastly = {
source = "fastly/fastly"
version = "7.0.0"
}
}
required_version = ">= 1.0"
}
# data "fastly_tls_configuration" "http3_tls13" {
# id = "QqO0FM8CvrMCSr94yODlTw"
# }
#
# output "tls_config" {
# value = data.fastly_tls_configuration.http3_tls13
# }
resource "fastly_tls_subscription" "fastly_dev" {
domains = ["www.fastly-dev.com"]
certificate_authority = "certainly"
configuration_id = "QqO0FM8CvrMCSr94yODlTw"
}
resource "fastly_service_vcl" "fastly_dev" {
name = "fastly_dev"
domain {
name = "www.fastly-dev.com"
}
backend {
address = "www.fastly-debug.com"
name = "fastly_debug"
override_host = "www.fastly-debug.com"
port = 443
ssl_cert_hostname = "fastly-debug.com"
ssl_sni_hostname = "fastly-debug.com"
use_ssl = true
}
force_destroy = true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment