-
Notifications
You must be signed in to change notification settings - Fork 119
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When creating an SLO using the provider, the id
field is ignored, despite the docs saying otherwise.
id (String) An ID (8 and 36 characters). If omitted, a UUIDv1 will be generated server-side.
To Reproduce
Steps to reproduce the behavior:
- TF configuration used
resource "elasticstack_kibana_slo" "supdawg" {
id = "supdawg"
name = "supdawg"
description = "custom kql"
kql_custom_indicator {
index = "my-index-*"
good = "*"
total = "*"
timestamp_field = "@timestamp"
}
time_window {
duration = "30d"
type = "rolling"
}
budgeting_method = "occurrences"
objective {
target = 0.995
}
}
- TF operations to execute to get the error '...' [e.g
terraform plan
,terraform apply
,terraform destroy
]
terraform apply
- No error, but SLO is created with a UUID rather than
supdawg
.
Expected behavior
Needs more supdawg
As you can see from the trace, the provider isn't adding id
to the request body.
---[ REQUEST ]---------------------------------------
POST /s/default/api/observability/slos HTTP/1.1
Host: cluster-mgmt-a.kb.ap-southeast-2.aws.found.io
User-Agent: elasticstack-terraform-provider/0.11.2
Content-Length: 293
Accept: application/json
Authorization: ***************************************************
Content-Type: application/json
kbn-xsrf: true
Accept-Encoding: gzip
{
"budgetingMethod": "occurrences",
"description": "custom kql",
"indicator": {
"params": {
"good": "*",
"index": "my-index-*",
"timestampField": "@timestamp",
"total": "*"
},
"type": "sli.kql.custom"
},
"name": "supdawg",
"objective": {
"target": 0.995
},
"settings": {},
"timeWindow": {
"duration": "30d",
"type": "rolling"
}
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working