Skip to content

nephosolutions/terraform-netlify-site

Repository files navigation

Terraform module Netlify site

This repository contains the Terraform module code to manage a Netlify site.

Usage

module "netlify_site" {
  source  = "nephosolutions/site/netlify"
  version = "1.0.0"
  # insert the 3 required variables here
}

Requirements

Name Version
terraform >= 0.12.26

Providers

Name Version
github n/a
netlify n/a

Inputs

Name Description Type Default Required
custom_domain Custom domain of the site, must be configured using a CNAME in accordance with Netlify's docs. (e.g. www.example.com) any null no
github The configuration of your Github organization and repository
object({
organization = string
repository = string
})
n/a yes
name Name of your site on Netlify (e.g. mysite.netlify.app) any n/a yes
production_branch The Git branch from which production deploys will be build string "master" no

Outputs

Name Description
custom_domain Custom domain of the site, must be configured using a CNAME in accordance with Netlify's docs. (e.g. www.example.com)
name Name of your site on Netlify (e.g. mysite.netlify.app)