Skip to content

This is an example setup to configure and manage Fastly CDN service via Terraform.

License

Notifications You must be signed in to change notification settings

abiydv/fastly-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Fastly Module

terraform fastly s3 ssm

Use this Terraform module to create Fastly services with multiple backends, domains, dictionaries, ACLs, VCL snippets etc.

Pre-requisites

Functionality in this module assumes the following

  1. Use of S3 as the remote backend to save the state info (bucket-name : base-bucket)

  2. Use of AWS SSM paramater store to fetch S3 credentials for log streaming (bucket name & region: configurable as variable)

  3. Terraform version 0.12 & above

Features

  1. Supports all VCL snippets - recv, fetch, hit, error, deliver

  2. Supports multiple domains, origins

  3. Supports multiple ACLs & adding entries to them

  4. Supports multiple edge dictionaries - can be used in VCLs

  5. Supports S3 log streaming

How to use

  1. Duplicate the example-service directory and modify the values to create Fastly services

  2. Export your AWS credentials and Fastly API keys

export FASTLY_API_KEY=xxxxxxxxx
export AWS_PROFILE=xxxxxxxxx
  1. Initialize and execute Terraform
terraform init
terraform plan
terraform apply
  1. Destroy the setup (if needed)
terraform destroy

About

This is an example setup to configure and manage Fastly CDN service via Terraform.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published