Skip to content

Commit b9296ba

Browse files
feat(telemetryrouter): Onboarding TelemetryRouter (#1425)
STACKITTPR-631
1 parent 1be6341 commit b9296ba

39 files changed

Lines changed: 6950 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "stackit_telemetryrouter_access_token Data Source - stackit"
4+
subcategory: ""
5+
description: |-
6+
TelemetryRouter access token data source schema. Uses the default_region specified in the provider configuration as a fallback in case no region is defined on datasource level.
7+
---
8+
9+
# stackit_telemetryrouter_access_token (Data Source)
10+
11+
TelemetryRouter access token data source schema. Uses the `default_region` specified in the provider configuration as a fallback in case no `region` is defined on datasource level.
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "stackit_telemetryrouter_access_token" "accessToken" {
17+
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
18+
region = "eu01"
19+
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
20+
access_token_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
21+
}
22+
```
23+
24+
<!-- schema generated by tfplugindocs -->
25+
## Schema
26+
27+
### Required
28+
29+
- `access_token_id` (String) The access token ID
30+
- `instance_id` (String) The TelemetryRouter instance ID associated with the access token
31+
- `project_id` (String) STACKIT project ID associated with the TelemetryRouter access token
32+
33+
### Optional
34+
35+
- `region` (String) STACKIT region name the resource is located in. If not defined, the provider region is used.
36+
37+
### Read-Only
38+
39+
- `creator_id` (String) The user who created the access token
40+
- `description` (String) The description of the access token
41+
- `display_name` (String) The displayed name of the access token
42+
- `expiration_time` (String) The date and time an access token will expire at (inclusively)
43+
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`region`,`instance_id`,`access_token_id`".
44+
- `status` (String) The status of the access token. Possible values are: `active`, `expired`, `deleting`.
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "stackit_telemetryrouter_destination Data Source - stackit"
4+
subcategory: ""
5+
description: |-
6+
TelemetryRouter destination data source schema. Uses the default_region specified in the provider configuration as a fallback in case no region is defined on datasource level.
7+
---
8+
9+
# stackit_telemetryrouter_destination (Data Source)
10+
11+
TelemetryRouter destination data source schema. Uses the `default_region` specified in the provider configuration as a fallback in case no `region` is defined on datasource level.
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "stackit_telemetryrouter_destination" "destination" {
17+
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
18+
region = "eu01"
19+
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
20+
destination_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
21+
}
22+
```
23+
24+
<!-- schema generated by tfplugindocs -->
25+
## Schema
26+
27+
### Required
28+
29+
- `destination_id` (String) The TelemetryRouter destination ID
30+
- `instance_id` (String) The TelemetryRouter instance ID
31+
- `project_id` (String) STACKIT project ID associated with the TelemetryRouter instance
32+
33+
### Optional
34+
35+
- `region` (String) STACKIT region name the resource is located in. If not defined, the provider region is used.
36+
37+
### Read-Only
38+
39+
- `config` (Attributes) The configuration of the TelemetryRouter destination (see [below for nested schema](#nestedatt--config))
40+
- `creation_time` (String) The date and time the creation of the TelemetryRouter destination was initiated
41+
- `credential_type` (String) The TelemetryRouter destination's credential type
42+
- `description` (String) The description of the TelemetryRouter destination
43+
- `display_name` (String) The displayed name of the TelemetryRouter destination
44+
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`region`,`instance_id`,`destionation_id`".
45+
- `status` (String) The status of the TelemetryRouter destination, possible values: Possible values are: `reconciling`, `active`, `deleting`.
46+
47+
<a id="nestedatt--config"></a>
48+
### Nested Schema for `config`
49+
50+
Optional:
51+
52+
- `filter` (Attributes) The TelemetryRouter destination's filter settings (see [below for nested schema](#nestedatt--config--filter))
53+
- `opentelemetry` (Attributes) OpenTelemetry configuration (see [below for nested schema](#nestedatt--config--opentelemetry))
54+
- `s3` (Attributes) S3 configuration (see [below for nested schema](#nestedatt--config--s3))
55+
56+
Read-Only:
57+
58+
- `config_type` (String) The TelemetryRouter destinations's configuration type, possible values: Possible values are: `OpenTelemetry`, `S3`.
59+
60+
<a id="nestedatt--config--filter"></a>
61+
### Nested Schema for `config.filter`
62+
63+
Read-Only:
64+
65+
- `attributes` (Attributes List) The TelemetryRouter destination's filter attributes (see [below for nested schema](#nestedatt--config--filter--attributes))
66+
67+
<a id="nestedatt--config--filter--attributes"></a>
68+
### Nested Schema for `config.filter.attributes`
69+
70+
Read-Only:
71+
72+
- `key` (String) The TelemetryRouter destination's filter attribute key
73+
- `level` (String) The TelemetryRouter destination's filter attribute level, possible values: Possible values are: `resource`, `scope`, `logRecord`.
74+
- `matcher` (String) The TelemetryRouter destination's filter attribute matcher, possible values: Possible values are: `=`, `!=`.
75+
- `values` (List of String) The TelemetryRouter destination's filter attribute values
76+
77+
78+
79+
<a id="nestedatt--config--opentelemetry"></a>
80+
### Nested Schema for `config.opentelemetry`
81+
82+
Read-Only:
83+
84+
- `uri` (String) OpenTelemetry destination URI
85+
86+
87+
<a id="nestedatt--config--s3"></a>
88+
### Nested Schema for `config.s3`
89+
90+
Read-Only:
91+
92+
- `bucket` (String) S3 bucket name
93+
- `endpoint` (String) S3 endpoint
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "stackit_telemetryrouter_instance Data Source - stackit"
4+
subcategory: ""
5+
description: |-
6+
TelemetryRouter instance data source schema. Uses the default_region specified in the provider configuration as a fallback in case no region is defined on datasource level.
7+
---
8+
9+
# stackit_telemetryrouter_instance (Data Source)
10+
11+
TelemetryRouter instance data source schema. Uses the `default_region` specified in the provider configuration as a fallback in case no `region` is defined on datasource level.
12+
13+
## Example Usage
14+
15+
```terraform
16+
data "stackit_telemetryrouter_instance" "router" {
17+
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
18+
region = "eu01"
19+
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
20+
}
21+
```
22+
23+
<!-- schema generated by tfplugindocs -->
24+
## Schema
25+
26+
### Required
27+
28+
- `instance_id` (String) The TelemetryRouter instance ID
29+
- `project_id` (String) STACKIT project ID associated with the TelemetryRouter instance
30+
31+
### Optional
32+
33+
- `region` (String) STACKIT region name the resource is located in. If not defined, the provider region is used.
34+
35+
### Read-Only
36+
37+
- `creation_time` (String) The date and time the creation of the TelemetryRouter instance was initiated
38+
- `description` (String) The description of the TelemetryRouter instance
39+
- `display_name` (String) The display name of the TelemetryRouter instance
40+
- `filter` (Attributes) The TelemetryRouter global filter settings (see [below for nested schema](#nestedatt--filter))
41+
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`region`,`instance_id`".
42+
- `status` (String) The status of the TelemetryRouter instance, possible values: Possible values are: `reconciling`, `active`, `deleting`.
43+
- `uri` (String) The TelemetryRouter instance's URI
44+
45+
<a id="nestedatt--filter"></a>
46+
### Nested Schema for `filter`
47+
48+
Read-Only:
49+
50+
- `attributes` (Attributes List) The TelemetryRouter global filter attributes (see [below for nested schema](#nestedatt--filter--attributes))
51+
52+
<a id="nestedatt--filter--attributes"></a>
53+
### Nested Schema for `filter.attributes`
54+
55+
Read-Only:
56+
57+
- `key` (String) The TelemetryRouter global filter attribute key
58+
- `level` (String) The TelemetryRouter global filter attribute level, possible values: Possible values are: `resource`, `scope`, `logRecord`.
59+
- `matcher` (String) The TelemetryRouter global filter attribute matcher, possible values: Possible values are: `=`, `!=`.
60+
- `values` (List of String) The TelemetryRouter global filter attributes

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,5 +210,6 @@ Note: AWS specific checks must be skipped as they do not work on STACKIT. For de
210210
- `sfs_custom_endpoint` (String) Custom endpoint for the Stackit Filestorage API
211211
- `ske_custom_endpoint` (String) Custom endpoint for the Kubernetes Engine (SKE) service
212212
- `sqlserverflex_custom_endpoint` (String) Custom endpoint for the SQL Server Flex service
213+
- `telemetryrouter_custom_endpoint` (String) Custom endpoint for the Telemetry Router service
213214
- `token_custom_endpoint` (String) Custom endpoint for the token API, which is used to request access tokens when using the key flow
214215
- `use_oidc` (Boolean) Enables OIDC for Authentication. This can also be sourced from the `STACKIT_USE_OIDC` Environment Variable. Defaults to `false`.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "stackit_telemetryrouter_access_token Resource - stackit"
4+
subcategory: ""
5+
description: |-
6+
TelemetryRouter access token resource schema. Uses the default_region specified in the provider configuration as a fallback in case no region is defined on resource level.
7+
---
8+
9+
# stackit_telemetryrouter_access_token (Resource)
10+
11+
TelemetryRouter access token resource schema. Uses the `default_region` specified in the provider configuration as a fallback in case no `region` is defined on resource level.
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "stackit_telemetryrouter_access_token" "accessToken" {
17+
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
18+
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
19+
region = "eu01"
20+
display_name = "telemetryrouter-access-token-example"
21+
}
22+
23+
resource "stackit_telemetryrouter_access_token" "accessToken2" {
24+
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
25+
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
26+
region = "eu01"
27+
display_name = "telemetryrouter-access-token-example"
28+
ttl = 30
29+
description = "Example description"
30+
}
31+
32+
# Only use the import statement, if you want to import an existing TelemetryRouter access token
33+
# Note: The generated access token is only available upon creation.
34+
import {
35+
to = stackit_telemetryrouter_access_token.import-example
36+
id = "${var.project_id},${var.region},${var.telemetryrouter_instance_id},${var.telemetryrouter_access_token_id}"
37+
}
38+
```
39+
40+
<!-- schema generated by tfplugindocs -->
41+
## Schema
42+
43+
### Required
44+
45+
- `display_name` (String) The displayed name of the access token
46+
- `instance_id` (String) The TelemetryRouter instance ID associated with the access token
47+
- `project_id` (String) STACKIT project ID associated with the TelemetryRouter access token
48+
49+
### Optional
50+
51+
- `description` (String) The description of the access token
52+
- `region` (String) STACKIT region name the resource is located in. If not defined, the provider region is used.
53+
- `ttl` (Number) The time-to-live (TTL) in days for the access token. If not set, token will not expire
54+
55+
### Read-Only
56+
57+
- `access_token` (String, Sensitive) The generated access token
58+
- `access_token_id` (String) The access token ID
59+
- `creator_id` (String) The user who created the access token
60+
- `expiration_time` (String) The date and time an access token will expire at (inclusively)
61+
- `id` (String) Terraform's internal resource identifier. It is structured as "`project_id`,`region`,`instance_id`,`access_token_id`".
62+
- `status` (String) The status of the access token. Possible values are: `active`, `expired`, `deleting`.

0 commit comments

Comments
 (0)