Deployment via Terraform

In cases that deploying via Terraform is preferred follow this guide

The following should be added to your environment alongside any other standard configuration you deploy via Terraform.

Hosts

Two Host/Backend variables need to be added to the fastly_service_vcl resource:

  # Netacea backends 
  backend {
    name = "MitSvc"
    address = "geo-mitigations.netacea.net"
    use_ssl = true
    override_host = "geo-mitigations.netacea.net"
    ssl_cert_hostname = "geo-mitigations.netacea.net"
    ssl_sni_hostname = "geo-mitigations.netacea.net"
    port = "443"
    request_condition = "Netacea Forward Request"
  }

  backend {
    name = "CaptchaAssets"
    address = "assets.ntcacdn.net"
    use_ssl = true
    override_host = "assets.ntcacdn.net"
    ssl_cert_hostname = "assets.ntcacdn.net"
    ssl_sni_hostname = "assets.ntcacdn.net"
    port = "443"
    request_condition = "Netacea Forward Request"
  }

  # Prevent Netacea backends from being selected as default
  condition {
    name = "Netacea Forward Request"
    statement = "false"
    type = "REQUEST"
  }

Dictionary

A dictionary needs to be added to the fastly_service_vcl resource:

To populate the variables within the dictionary, use the fastly_service_dictionary resource:

circle-info

If you have not discussed advanced configuration with Netacea no variables need to be defined.

For more information on the fastly_service_dictionary resource, see Fastly Provider docsarrow-up-right

You will also need to ensure the following variables are defined within your environment:

The variables will need to be populated with the values found on your associated Netacea Datastream. See herearrow-up-right for more information on setting values.

VCL Snippets

Netacea will provide 7 VCL snippets separately, the files should be added to the relevant directory which stores your VCL snippets.

You will also need to reference these in the fastly_service_vcl resource:

circle-info

Update each of the content field with the directory the Netacea VCLs have been stored in.

Deployment

You are now able to deploy the Netacea integration.

For more information on the fastly_service_vcl resource see Fastly provider docsarrow-up-right.

Last updated