fastly_vcl_snippets

VCL Snippets are blocks of VCL logic inserted into your service's configuration that don't require custom VCL.

Use this data source to get a list of Fastly VCL Snippets for the specified service/version.

Example Usage

resource "fastly_service_vcl" "example" {
  name = "Example Service"

  domain {
    name = "example.com"
  }

  force_destroy = true
}

data "fastly_vcl_snippets" "example" {
  service_id      = fastly_service_vcl.example.id
  service_version = fastly_service_vcl.example.active_version
}

output "service_vcl_snippets" {
  value = data.fastly_vcl_snippets.example
}

Schema

Required

Read-Only

Nested Schema for vcl_snippets

Read-Only: