Use this data source to get a list of Fastly dictionaries for the specified service/version.
resource "fastly_service_vcl" "example" {
name = "Example Service"
domain {
name = "example.com"
}
dictionary {
name = "example_1"
}
dictionary {
name = "example_2"
}
dictionary {
name = "example_3"
}
force_destroy = true
}
data "fastly_dictionaries" "example" {
depends_on = [fastly_service_vcl.example]
service_id = fastly_service_vcl.example.id
service_version = fastly_service_vcl.example.active_version
}
output "service_dictionaries" {
value = data.fastly_dictionaries.example
}
service_id
(String) Alphanumeric string identifying the service.service_version
(Number) Integer identifying a service version.dictionaries
(Set of Object) List of all dictionaries for the version of the service. (see below for nested schema)id
(String) The ID of this resource.dictionaries
Read-Only:
id
(String)name
(String)write_only
(Boolean)