You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add tags attribute to Terraform reference pages for v0.6.0 (#151)
## Summary
Updates Terraform reference docs to match the v0.6.0 release of
`kosli-dev/terraform-provider-kosli`, which adds a `tags` attribute (Map
of String) to environments, logical environments, and flows.
### Changes
- **`kosli_environment` resource** — added `tags` optional attribute to
schema, added tagged example, removed outdated warnings about tags not
being supported
- **`kosli_logical_environment` resource** — added `tags` optional
attribute to schema, added tagged example, removed duplicate warning
- **`kosli_flow` resource** — added `tags` optional attribute to schema,
added tagged example
- **`kosli_environment` data source** — added `tags` read-only attribute
to schema, added tag output examples
- **`kosli_logical_environment` data source** — added `tags` read-only
attribute to schema, added tag output example
- **`kosli_flow` data source** — added `tags` read-only attribute to
schema, added tag output example
No new resources or data sources were added in v0.6.0.
Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: terraform-reference/resources/environment.mdx
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ icon: "cube"
7
7
Manages a Kosli environment. Environments represent deployment targets where artifacts are deployed. Supports physical environment types: K8S, ECS, S3, docker, server, and lambda.
8
8
9
9
<Warning>
10
-
This resource manages the environment configuration only. Environment tags are managed through a separate Kosli API. To attach compliance policies, use the [`kosli_policy_attachment` resource](/terraform-reference/resources/policy_attachment). For querying environment metadata such as `last_modified_at`, `last_reported_at`, and `archived` status, use the [`kosli_environment` data source](/terraform-reference/data-sources/environment).
10
+
This resource manages the environment configuration and tags. To attach compliance policies, use the [`kosli_policy_attachment` resource](/terraform-reference/resources/policy_attachment). For querying environment metadata such as `last_modified_at`, `last_reported_at`, and `archived` status, use the [`kosli_environment` data source](/terraform-reference/data-sources/environment).
11
11
</Warning>
12
12
13
13
Kosli environments track deployments and provide visibility into what's running in your infrastructure. Physical environments represent actual runtime locations such as:
@@ -23,10 +23,6 @@ Kosli environments track deployments and provide visibility into what's running
23
23
For aggregating multiple physical environments into logical groups, use the [`kosli_logical_environment` resource](/terraform-reference/resources/logical_environment).
24
24
</Note>
25
25
26
-
<Warning>
27
-
Environment tags are managed through a separate Kosli API and are not included in this Terraform resource.
28
-
</Warning>
29
-
30
26
<Note>
31
27
To attach compliance policies to environments, use the [`kosli_policy_attachment` resource](/terraform-reference/resources/policy_attachment).
description = "Production cluster managed by Terraform"
53
+
tags = {
54
+
managed-by = "terraform"
55
+
environment = "production"
56
+
team = "platform"
57
+
}
58
+
}
59
+
52
60
# ECS environment with scaling
53
61
resource "kosli_environment" "staging_ecs" {
54
62
name = "staging-ecs"
@@ -133,3 +141,4 @@ For querying environment metadata such as `last_modified_at` and `last_reported_
133
141
134
142
-`description` (String) Description of the environment. Explains the purpose and characteristics of this deployment target.
135
143
-`include_scaling` (Boolean) Whether to include scaling information when reporting environment snapshots. Defaults to `false`.
144
+
-`tags` (Map of String) Key-value pairs to tag the environment. Tags are applied via a diff — only changed tags are sent to the API. An empty map (`tags = {}`) removes all tags.
-`description` (String) Description of the flow. Explains the purpose and context of this pipeline.
88
+
-`tags` (Map of String) Key-value pairs to tag the flow. Tags are applied via a diff — only changed tags are sent to the API. An empty map (`tags = {}`) removes all tags.
77
89
-`template` (String) YAML template defining the flow structure (trails, artifacts, attestations). Can be provided as an inline heredoc or loaded from a file using `file()`. If omitted, the flow is created without a template.
Copy file name to clipboardExpand all lines: terraform-reference/resources/logical_environment.mdx
+19-5Lines changed: 19 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Logical environments can ONLY contain physical environments (K8S, ECS, S3, docke
11
11
</Warning>
12
12
13
13
<Warning>
14
-
This resource manages logical environment configuration only. For querying environment metadata such as `last_modified_at` and `archived` status, use the [`kosli_logical_environment` data source](/terraform-reference/data-sources/logical_environment).
14
+
This resource manages logical environment configuration and tags. For querying environment metadata such as `last_modified_at` and `archived` status, use the [`kosli_logical_environment` data source](/terraform-reference/data-sources/logical_environment).
15
15
</Warning>
16
16
17
17
Logical environments in Kosli aggregate multiple physical environments for organizational purposes, providing:
This resource manages logical environment configuration only. For querying environment metadata such as `last_modified_at` and `archived` status, use the [`kosli_logical_environment` data source](/terraform-reference/data-sources/logical_environment).
186
-
</Warning>
187
-
188
201
## Schema
189
202
190
203
### Required
@@ -195,6 +208,7 @@ This resource manages logical environment configuration only. For querying envir
195
208
### Optional
196
209
197
210
-`description` (String) Description of the logical environment. Explains the purpose and aggregation strategy.
211
+
-`tags` (Map of String) Key-value pairs to tag the logical environment. Tags are applied via a diff — only changed tags are sent to the API. An empty map (`tags = {}`) removes all tags.
0 commit comments