Created
May 16, 2025 14:59
-
-
Save rssnyder/c7d0ebbafd10073e184722709a03fd5e to your computer and use it in GitHub Desktop.
Creating a Harness Resource Group for a CCM Perspective Folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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