Skip to content

terraform apply CLI Action output missing "Actions: n invoked" #37689

@steve-hashi

Description

@steve-hashi

Terraform Version

Terraform v1.14.0-beta2
on darwin_arm64
+ provider registry.terraform.io/austinvalle/bufo v2.0.0

Terraform Configuration Files

terraform {
  required_providers {
    bufo = {
      source = "austinvalle/bufo"
    }
  }
}

resource "terraform_data" "test" {
  lifecycle {
    action_trigger {
      events  = [after_create]
      actions = [action.bufo_print.success]
    }
  }
}

action "bufo_print" "success" {
  config {
    # random colorized bufo
    color = true
  }
}

Debug Output

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Expected Behavior

I would expect the apply output for Actions to summarize the # of actions invoked during the apply, like:

Apply complete! Resources: 1 added, 0 changed, 0 destroyed. Actions: 1 invoked.

Here's what the plan output is for the same config, which has the Actions info:

Plan: 1 to add, 0 to change, 0 to destroy. Actions: 1 to invoke.

It is important to have the final line summarizing the apply to include the actions invoked.

Actual Behavior

Number of actions invoked is not shown

Steps to Reproduce

  1. terraform init
  2. terraform apply
  3. Observe results

Additional Context

No response

References

No response

Generative AI / LLM assisted development?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugnewnew issue not yet triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions