Skip to content
masterclass Buddy

DevOps · Command

terraform

Terraform actions run provider-defined operations that do not change managed resource state. Declare an action, then invoke it from the CLI or trigger it from a resource lifecycle event.

Last updated

Syntax

action "TYPE" "LABEL" {
  config {
    # provider-specific arguments
  }
}
terraform plan -invoke=action.TYPE.LABEL
terraform apply -invoke=action.TYPE.LABEL

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • action block
  • config block
  • action_trigger
  • caller
  • count
  • provider
  • on_failure
  • after_create

Source: Invoke an action | Terraform | HashiCorp Developer. Checked 2026-11-03.