mirror of https://github.com/hashicorp/terraform
Backport of Fix panic for invalid `action_trigger` nested blocks in `data` and `ephemeral` into v1.15 (#38452)
* backport of commitpull/38477/heade65b690f80* backport of commitf69f06a1ff--------- Co-authored-by: Austin Valle <austinvalle@gmail.com>
parent
20d2eab8e1
commit
2c0fc76072
@ -0,0 +1,5 @@
|
||||
kind: BUG FIXES
|
||||
body: Fixed crash when configuration has an invalid `action_trigger` nested block in `data` or `ephemeral` lifecycle blocks
|
||||
time: 2026-04-27T09:26:12.662049-04:00
|
||||
custom:
|
||||
Issue: "38402"
|
||||
@ -0,0 +1,10 @@
|
||||
action "test_action" "test" {}
|
||||
|
||||
data "test_data" "test" {
|
||||
lifecycle {
|
||||
action_trigger {
|
||||
actions = [action.test_action.test]
|
||||
events = [after_create, after_update]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
action "test_action" "test" {}
|
||||
|
||||
ephemeral "test_ephemeral" "test" {
|
||||
lifecycle {
|
||||
action_trigger {
|
||||
actions = [action.test_action.test]
|
||||
events = [after_create, after_update]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue