10BC0 feat: Add initial Terraform provider for Lens Team Spaces (#4523) by ljluestc · Pull Request #8282 · lensapp/lens · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@ljluestc
Copy link
@ljluestc ljluestc commented Jan 2, 2026

PR Description: Implement Terraform Provider for Lens Team Workspaces

Title

feat: Add lens_team_space resource for Team Workspaces management

Description

This pull request introduces the lens_team_space resource to the Lens Terraform Provider, enabling users to manage Lens Team Workspaces programmatically using Terraform.

This feature allows for the creation, reading, updating, and deletion (CRUD) of Team Spaces, facilitating better automation and infrastructure-as-code practices for Lens users.

Changes

  • New Resource: lens_team_space
    • Supports name (required, string)
    • Supports description (optional, string)
    • Supports members (optional, list of strings)
  • Documentation: Updated README.md with:
    • Build instructions
    • Configuration guide using dev_overrides
    • A complete usage example for lens_team_space

Related Issue

Fixes #4523

How Has This Been Tested?

  • Manual Verification: built the provider locally (go build) and tested with a sample Terraform configuration (as documented in the README.md).
  • Unit Tests: go test ./... passes (though currently limited to basic provider instantiation).

Example Usage

provider "lens" {
  token = var.lens_access_token
}

resource "lens_team_space" "engineering" {
  name        = "Engineering Team"
  description = "Shared workspace for all engineering related clusters"
  members     = [
    "user1@example.com",
    "user2@example.com"
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

terraform provider for team workspaces

1 participant

0