Skip to content

Estimate provisioning time #28512

@magodo

Description

@magodo

Current Terraform Version

v0.15

Use-cases

Terraform command like plan/apply/destroy can tell users an estimation of the time needed to finish the operation, so that users can have a sense on how long this provision will take.

Proposal

Add a new step in the Plan/Apply/Destroy Graph, during which the TF will query the provider(s) for an estimation of the current execution plan. Given the plan, the provider can do a check on the input properties of each resource and whether this resource is newly created or is an update, produce an estimation on the time needed, per resource. As a fallback, if there is no logic provided by the provider, the Timeout settings for the corresponding operation is returned. Then the TF can collect each resource's estimation, plus the provisioning order and relationships, with parallelism taken into consideration, generate a final provision estimation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementnewnew issue not yet triagedproviders/protocolPotentially affecting the Providers Protocol and SDKs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions