jsiebens / terraform-digitalocean-faasd

Terraform Module for how to deploy a faasd instance on DigitalOcean

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

faasd for DigitalOcean

This repo contains a Terraform Module for how to deploy a faasd instance on DigitalOcean using Terraform.

faasd, a lightweight & portable faas engine, is OpenFaaS reimagined, but without the cost and complexity of Kubernetes. It runs on a single host with very modest requirements, making it fast and easy to manage. Under the hood it uses containerd and Container Networking Interface (CNI) along with the same core OpenFaaS components from the main project.

What's a Terraform Module?

A Terraform Module refers to a self-contained packages of Terraform configurations that are managed as a group. This repo is a Terraform Module and contains many "submodules" which can be composed together to create useful infrastructure patterns.

How do you use this module?

This repository defines a Terraform module, which you can use in your code by adding a module configuration and setting its source parameter to URL of this repository:

module "faasd" {
  source = "github.com/jsiebens/terraform-digitalocean-faasd"
  
  name     = "faasd"
  region   = "lon1"
  ssh_keys = [12345, 123456]
}

Requirements

Name Version
terraform >= 1.0.0
digitalocean >= 2.11.0
random >= 3.1.0

Providers

Name Version
digitalocean >= 2.11.0
random >= 3.1.0

Resources

Name Type
digitalocean_droplet.faasd resource
digitalocean_firewall.faasd resource
random_password.faasd resource

Inputs

Name Description Type Default Required
basic_auth_password The basic auth password, if left empty, a random password is generated. string null no
basic_auth_user The basic auth user name. string "admin" no
domain A public domain for the faasd instance. This will the use of Caddy and a Let's Encrypt certificate string "" no
droplet_size The droplet size to use for the faasd instance (e.g. s-1vcpu-1gb). string "s-1vcpu-1gb" no
email Email used to order a certificate from Let's Encrypt string "" no
name The name of the faasd instance. All resources will be namespaced by this value. string n/a yes
region The region in which all DigitalOcean resources will be launched. string "lon1" no
ssh_keys A list of SSH IDs or fingerprints to enable on the faasd droplet list(string) [] no
vpc_uuid The ID of the VPC where the Droplet will be located. string null no

Outputs

Name Description
basic_auth_password The basic auth password.
basic_auth_user The basic auth user name.
gateway_url The url of the faasd gateway
ipv4_address The public IP address of the faasd droplet

See Also

About

Terraform Module for how to deploy a faasd instance on DigitalOcean

License:MIT License


Languages

Language:HCL 92.9%Language:Shell 7.1%