Skip to content

Latest commit

 

History

History
 
 

cdn

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fastly CDN Config

This module creates Fastly services for the Python.org staging and production instances.

Usage

module "fastly_production" {
  source = "./cdn"

  name            = "CoolPythonApp.org"
  domain          = "CoolPythonApp.org"
  subdomain       = "www.CoolPythonApp.org"
  extra_domains   = ["www.CoolPythonApp.org"]
  backend_address = "service.CoolPythonApp.org"
  default_ttl     = 3600

  datadog_key         = var.DATADOG_API_KEY
  fastly_key          = var.FASTLY_API_KEY
  fastly_header_token = var.FASTLY_HEADER_TOKEN
  s3_logging_keys     = var.fastly_s3_logging
}

Outputs

N/A

Requirements

Tested on

  • Tested on Terraform 1.9.5
  • Fastly provider 5.13.0

Fastly's NGWAF

This module also conditionally can set up the Fastly Next-Gen Web Application Firewall (NGWAF) for our Fastly services related to python.org / test.python.org.

Usage

module "fastly_production" {
  source = "./cdn"

  ...
  activate_ngwaf_service = true
  ...
}

Requirements

Tested on

  • Terraform 1.9.5
  • Fastly provider 5.13.0
  • SigSci provider 3.3.0