This repo contains a Terraform Module for how to deploy a faasd instance on Equinix Metal 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.
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.
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:
data "metal_project" "project" {
name = "My Project"
}
module "faasd" {
source = "github.com/jsiebens/terraform-equinix-faasd"
name = "faasd"
project_id = data.metal_project.project.id
}
Name | Version |
---|---|
terraform | >= 1.0.0 |
metal | >= 3.0.0 |
random | >= 3.1.0 |
Name | Version |
---|---|
metal | >= 3.0.0 |
random | >= 3.1.0 |
Name | Type |
---|---|
metal_device.faasd | resource |
random_password.faasd | resource |
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 |
Email used to order a certificate from Let's Encrypt | string |
"" |
no | |
metro | Metro area for the new faasd device. | string |
"am" |
no |
name | The faasd device name. | string |
n/a | yes |
plan | The faasd device plan slug. | string |
"c3.small.x86" |
no |
project_id | The ID of the project in which to create the device. | string |
n/a | yes |
project_ssh_key_ids | Array of IDs of the project SSH keys which should be added to the faasd device. | list(string) |
[] |
no |
ufw_enabled | Flag to indicate if UFW (Uncomplicated Firewall) should be enabled or not. | bool |
true |
no |
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 |