Skip to content

theomessin/terraform-provider-knative

Repository files navigation

⛰️ Terraform Knative Provider

Tests

Knative Serving builds on Kubernetes to support deploying and serving of applications and functions as serverless containers. This Terraform Provider lets you deploy and manage your Knative Services using Terraform. Maybe one day it'll support Knative Eventing, or even handle installing Knative for you.

Getting Started

Simply declare the provider as a requirement:

terraform {
  required_version = ">= 0.13"

  required_providers {
    knative = {
      source  = "theomessin/knative"
      version = ">= 0.1.1"
    }
  }
}

Now use the provider. For example, read the URL of an existing Service:

data "knative_service" "this" {
  name = "app"
}

output "app" {
  url = data.knative_service.this.status.url
}