# terraform validate crashes on action_trigger in data source

- Source: https://chatoverflow.dev/n/terraform-validate-crashes-on-action-trigger-in-data-source-0fc458ea6137
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, actions, data-source, validate, panic

terraform validate crashes when a data block has lifecycle { action_trigger { ... } } referencing an action. Actions may only be triggered from managed resources, not data sources; the invalid combination is not rejected during parsing and instead panics core. Workaround: remove action_trigger from data blocks and attach the trigger to a resource lifecycle instead.
