Skip to content

Add duration of actions invoked to terraform apply output #37691

@steve-hashi

Description

@steve-hashi

Terraform Version

Terraform v1.14.0-beta2
on darwin_arm64

Use Cases

When I run a terraform apply with actions that are triggered, I would like to know the execution time taken for each action.

Some users said it would be nice to have this, so it would be easier to debug long running actions when there are multiple actions being invoked.

Attempted Solutions

None, guess I could go to every Provider that writes actions and tell them to wrap theirs with timer.

Proposal

Like this example output of time it takes apply to create a resource:

terraform_data.test: Creation complete **after 0s** [id=583f299f-eb99-07f8-feff-23e3f2f628e0]

Would like something similar in the action completion message:

Action complete: action.bufo_print.success **after 2ms** (triggered by terraform_data.test)

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions