Big News: Kosli’s achives Series A milestone with Deutsche Bank as an investor - Read the announcement
New: Kosli Answers is here! AI-powered insights for compliance and security. Learn more →
Environment support in Terraform Provider for Kosli - v0.2.0

Environment support in Terraform Provider for Kosli - v0.2.0

Author Dan Grøndahl
Published February 13, 2026 in technology
clock icon 1 min read

We’re excited to announce support of physical environments in the Terraform Provider for Kosli!

What’s Included                                                                                                                        

Environment Management:
Full lifecycle support for creating, updating, and managing physical environments types:
K8S, ECS, S3, docker, server, and lambda.

Manage legacy environments as IaC:
Import your existing physical environments to have Terraform manage them.

Example

Here’s a simple example on how you can provision a Kubernetes environment using Terraform:

main.tf

terraform {
  required_providers {
    kosli = {
      source = "kosli-dev/kosli"
      version = "~> 0.2"
    }
  }
}

provider "kosli" {
  org = "my-org"
  
  # preferably use KOSLI_API_TOKEN for auth (requires admin permissions)
  # alternatively: 
  # api_token = var.api_token
}

# Basic K8S environment
resource "kosli_environment" "production_k8s" {
  name            = "production-k8s"
  type            = "K8S"
  description     = "Production Kubernetes cluster"
  include_scaling = true
}



Just run:

  1. terraform init
  2. terraform plan
  3. terraform apply
  4. Done!



What’s Next

This is only the start of the journey managing Kosli resources at scale. We have much more coming up:

  • Logical environments to aggregate physical environments
  • Environment policies
  • Documentation on Kosli Terraform provider (in docs.kosli.com)
  • Follow milestone v0.3.0 for details


Full documentation and examples: https://registry.terraform.io/providers/kosli-dev/kosli/latest
View on GitHub: https://github.com/kosli-dev/terraform-provider-kosli/releases/tag/v0.2.0


ABOUT THIS ARTICLE

Published February 13, 2026, in technology

AUTHOR

Stay in the loop with the Kosli newsletter

Get the latest updates, tutorials, news and more, delivered right to your inbox
Stay in the loop with the Kosli newsletter
Tired of Compliance Bottlenecks and Slow Approvals? Tired of Compliance Bottlenecks and Slow Approvals?

Tired of Compliance Bottlenecks and Slow Approvals?

TRUSTED BY THE WORLD’S LARGEST BANKS AND REGULATED COMPANIES

 logo
 logo
 logo
 logo
 logo
 logo
 logo
 logo
 logo
 logo