Skip to content

Terraform module for deploying static sites to DigitalOcean's App Platform

License

Notifications You must be signed in to change notification settings

m4xmorris/terraform-digitalocean-static-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-digitalocean-static-site

Terraform module for deploying static sites on DigitalOcean's App Platform, with support for Cloudflare DNS.

Usage:

Create a .tf file inside your root module to call this module and set variables. An example workspace can be found in this repo build test.

See variables.tf for variable descriptions and examples.

See DigitalOcean's documentation for a list of supported languages and frameworks.

The site's default ingress URL can be found in the module output default_ingress.

Optionally, this module is able to automatically create Cloudflare DNS records pointing to your app.

To enable this, set the following variables in your module block.

  • manage_dns = true
  • cloudflare_zone_id = "zone_id"

Note - If you disable DNS management, you will still need to declare the cloudflare provider in your root module to satisfy dependencies. If you do not wish to provide an API key, you must set it to nullnullnullnullnullnullnullnullnullnull.