This repo contains a Terraform Module for how to deploy a faasd instance on the
AWS 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:
First of all thanks for making this terraform configuration. I was able to create a faasd instace on EC2 in 5 mins.
I am new to OpenFaaS and Faasd. The issue I am facing is that using the basic-auth-password and the gateway url output after running terraform, faas-cli is unable to connect with the instance. Am I missing some step here. Any help is much appreciated.
Commands
export OPENFAAS_URL=<gateway url as given after terraform apply>
faas-cli login -u admin --password <basic-auth-password that is set in faasd instance>
error
Calling the OpenFaaS server to validate the credentials...
WARNING! You are not using an encrypted connection to the gateway, consider using HTTPS.
Cannot connect to OpenFaaS on URL: http://$IP:8080. Get "http://$IP:8080/system/functions": dial tcp $IP:8080: connect: connection refused
Additional information
In the EC2 instance, it seems like there is no faasd instance running.
Logs from shell session into the server
$ sudo systemctl status faasd
Unit faasd.service could not be found.