» OpenFaaS Provider

The OpenFaaS provider is used to interact with OpenFaaS functions. The provider may need to be configured with the proper credentials to talk to the OpenFaaS gateway if using basic auth (recommended).

Use the navigation to the left to read about the available resources.

» Introduction video

» Example Usage

# Configure the OpenFaaS Provider
provider "openfaas" {
  uri       = "https://localhost:8080"
  user_name = "a-username"
  password  = "a-password"
}

# Create a function
resource "openfaas_function" "figlet" {
  # ...
}

» Authentication

The OpenFaaS provider offers a flexible means of providing credentials for authentication. The following methods are supported, in this order, and explained below:

  • Basic authentication
  • No authentication

» Basic authentication

This is the recommended option, configure the provider block inline:

provider "openfaas" {
  uri       = "https://localhost:8080"
  user_name = "a-username"
  password  = "a-password"
}

» No authentication

This is not recommended, please only use in a private environment:

provider "openfaas" {
  uri       = "http://localhost:8080"  
}

» Argument Reference

In addition to generic provider arguments (e.g. alias and version), the following arguments are supported in the AWS provider block: