Skip to content

mediavine/terraform-fastly-service

Repository files navigation

Requirements

Name Version
fastly >= 5.6.0

Providers

Name Version
fastly 5.6.0

Modules

No modules.

Resources

Name Type
fastly_service_vcl.this resource

Inputs

Name Description Type Default Required
fastly_activate Conditionally prevents the Service from being activated. The apply step will continue to create a new draft version but will not activate it if this is set to false bool true no
fastly_api_key The Fastly API key string n/a yes
fastly_backends A list of backends to be added to the Fastly service. Each object in the list has the following attributes:
- address (String) An IPv4, hostname, or IPv6 address for the Backend
- name (String) Name for this Backend. Must be unique to this Service. It is important to note that changing this attribute will delete and recreate the resource.
- auto_loadbalance (Boolean) Denotes if this Backend should be included in the pool of backends that requests are load balanced against. Default false
- between_bytes_timeout (Number) How long to wait between bytes in milliseconds. Default 10000
- connect_timeout (Number) How long to wait for a timeout in milliseconds. Default 1000
- error_threshold (Number) How many errors should be seen before this backend is considered unhealthy. Default 0
- first_byte_timeout (Number) How long to wait for the first byte in milliseconds. Default 15000
- healthcheck (String) The name of the healthcheck to use with this backend
- keepalive_time (Number) How long to keep a connection to the backend open in seconds. Default 60
- max_conn (Number) The maximum number of connections to the backend. Default 200
- max_tls_version (String) The maximum version of TLS the backend supports
- min_tls_version (String) The minimum version of TLS the backend supports
- override_host (String) The hostname to override the Host header
- port (Number) The port number of the address. Default 80
- request_condition (String) Name of a condition, which if met, will select this backend during a request.
- share_key (String) Value that when shared across backends will enable those backends to share the same health check.
- shield (String) The POP of the shield designated to reduce inbound load. Valid values for shield are included in the GET /datacenters API response
- ssl_ca_cert (String) CA certificate attached to origin.
- ssl_cert_hostname (String) Configure certificate validation. Does not affect SNI at all
- ssl_check_cert (Boolean) Check the backend certificate. Default true
- ssl_ciphers (String) Cipher list consisting of one or more cipher strings separated by colons. Commas or spaces are also acceptable separators but colons are normally used.
- ssl_client_cert (String) Client certificate attached to origin.
- ssl_client_key (String, Sensitive) Client key attached to origin.
- ssl_sni_hostname (String) SNI host name to use during SSL handshake. This is required when using SSL.
- use_ssl (Boolean) Use SSL for this backend. Default false
- weight (Number) Weight used to load balance this backend against others. Default 100
list(object({
name = string
address = string
auto_loadbalance = optional(bool)
between_bytes_timeout = optional(number)
connect_timeout = optional(number)
error_threshold = optional(number)
first_byte_timeout = optional(number)
healthcheck = optional(string)
keepalive_time = optional(number)
max_conn = optional(number)
max_tls_version = optional(string)
min_tls_version = optional(string)
override_host = optional(string)
port = optional(number)
request_condition = optional(string)
share_key = optional(string)
shield = optional(string)
ssl_ca_cert = optional(string)
ssl_cert_hostname = optional(string)
ssl_check_cert = optional(bool)
ssl_ciphers = optional(string)
ssl_client_cert = optional(string)
ssl_client_key = optional(string)
ssl_sni_hostname = optional(string)
use_ssl = optional(bool)
weight = optional(number)
}))
[
{
"address": "example.com",
"auto_loadbalance": false,
"between_bytes_timeout": 10000,
"connect_timeout": 1000,
"error_threshold": 0,
"first_byte_timeout": 15000,
"max_conn": 200,
"name": "example-backend",
"port": 80,
"ssl_check_cert": true,
"use_ssl": false,
"weight": 100
}
]
no
fastly_domain_comment A comment to be added to the domain string "" no
fastly_domain_name The name of the domain to be added to the Fastly service string n/a yes
fastly_enable_header Enable the header content block bool false no
fastly_enable_request_settings Enable the request settings content block bool false no
fastly_force_destroy When destroying a service, the force_destroy option must be set to true in order to destroy the service bool false no
fastly_header_action The action to perform on the header string "set" no
fastly_header_destination The destination of the header string "http.Strict-Transport-Security" no
fastly_header_ignore_if_set Ignore the header if it is already set bool false no
fastly_header_name The name of the header string "Genereated by force TLS and enable HSTS" no
fastly_header_priority The priority of the header number 100 no
fastly_header_source The source of the header string "\"max-age=300\"" no
fastly_header_type The type of the header string "response" no
fastly_request_setting_bypass_busy_wait Bypass busy wait bool false no
fastly_request_setting_force_miss Force miss bool false no
fastly_request_setting_force_ssl Force SSL bool true no
fastly_request_setting_max_stale_age The maximum stale age number 0 no
fastly_request_setting_name The name of the request setting string "Generated by force TLS and enable HSTS" no
fastly_request_setting_timer_support Timer support bool false no
fastly_service_name The name of the Fastly service string n/a yes
fastly_stale_if_error Enables serving a stale object if there is an error bool false no
headers List of headers and their attributes to be added to the Fastly service
list(object({
name = string
action = string
destination = string
ignore_if_set = bool
priority = number
source = string
type = string
}))
[] no

Outputs

Name Description
fastly_service_id n/a
fastly_service_name n/a