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
Run terraform init and terraform apply to create alert. Answer prompts for api key, etc.
Modify the target in the recipient block
...
recipient {
type = "slack"
target = "#my-alerting-channel-2"
}
Once again, run terraform apply to make changes to the trigger.
The apply will create a plan
Terraform will perform the following actions:
# honeycombio_trigger.trigger will be updated in-place
~ resource "honeycombio_trigger" "trigger" {
id = "pweHeSfZh9q"
name = "honeycomb-bug"
# (6 unchanged attributes hidden)
~ recipient {
id = "m7wahgjr9SC"
~ target = "#my-alerting-channel" -> "#my-alerting-channel-2"
# (1 unchanged attribute hidden)
}
# (1 unchanged block hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
but fail when attempting to apply
╷
│ Error: 422 Unprocessable Entity: unknown recipient - check recipient id 'm7wahgjr9SC' values.
│
│ with honeycombio_trigger.trigger,
│ on main.tf line 20, in resource "honeycombio_trigger" "trigger":
│ 20: resource "honeycombio_trigger" "trigger" {
│
╵
Additional context
Terraform version 1.1.7
I would expect to be able to use the same basic structure to both create triggers with slack recipients, and update the recipient later to go to a new channel if necessary. The issue above poses problems when attempting to use input variables to fill trigger details while creating multiple triggers. Especially when it is not known ahead of time which recipients already exist and which do not.
The text was updated successfully, but these errors were encountered:
This completes the move of the `honeycombio_trigger` resource to the
Terraform Plugin Framework (started in #306).
In order to support versions of Terraform core older than 1.4.0 (which,
is rather "fresh") there is a bit of logic to handle `Null` or `Unknown`
values of these awkwardly-shaped notification recipients.
This also 'bumps' the version of Terraform core used in CI to 1.0.11
(from the old 0.14.x series).
- Closes#303, #267, #200
Versions
0.13.0 & 0.14.0
Steps to reproduce
main.tf
:settings.tf
:Run
terraform init
andterraform apply
to create alert. Answer prompts for api key, etc.terraform apply
to make changes to the trigger.The apply will create a plan
but fail when attempting to apply
Additional context
Terraform version 1.1.7
I would expect to be able to use the same basic structure to both create triggers with slack recipients, and update the recipient later to go to a new channel if necessary. The issue above poses problems when attempting to use input variables to fill trigger details while creating multiple triggers. Especially when it is not known ahead of time which recipients already exist and which do not.
The text was updated successfully, but these errors were encountered: