Skip to content

Instantly share code, notes, and snippets.

@rssnyder
Created May 16, 2025 14:59
Show Gist options
  • Select an option

  • Save rssnyder/c7d0ebbafd10073e184722709a03fd5e to your computer and use it in GitHub Desktop.

Select an option

Save rssnyder/c7d0ebbafd10073e184722709a03fd5e to your computer and use it in GitHub Desktop.
Creating a Harness Resource Group for a CCM Perspective Folder
terraform {
required_providers {
harness = {
source = "harness/harness"
}
}
}
variable "folder_id" {
type = string
}
data "harness_platform_current_account" "current" {}
resource "harness_platform_resource_group" "this" {
identifier = "some_folder"
name = "some folder"
account_id = data.harness_platform_current_account.current.id
allowed_scope_levels = ["account"]
included_scopes {
filter = "EXCLUDING_CHILD_SCOPES"
account_id = data.harness_platform_current_account.current.id
}
resource_filter {
include_all_resources = false
resources {
resource_type = "CCM_FOLDER"
identifiers = [var.folder_id]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment