Skip to content

Issue: Terraform startup time with large statefiles #35822

@rwblokzijl

Description

@rwblokzijl

Hello!

We have a statefile in which we currently manage 14160 resources. This leads to significant slowdown of terraform commands. We do optimise this with high parellelism, which works well enough. However, we do run into a different scaling issue: Terraform startup time.

When running terraform plan, apply or validate we are currently dealing with 3 minutes of no output before it starts doing anything. This does seem to scale with the size of our statefile. When inspecting our (100MB) statefile, over half of its weight is dependencies. And most of those are transitive dependencies.

  1. I am not familiar with the terraform implementation at all, but would there be some optimisations possible here to help us with our usecase?
  2. I would also love some suggestions about how to reduce our startup times (we already try to keep depencency counts low)
  3. We are planning to split up this statefile, but for that we would like to first see what terraform stacks has to offer. Is there an update about its release date?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions