Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error mounting state file due to size. #3

Open
roccato opened this issue Feb 1, 2023 · 2 comments
Open

Error mounting state file due to size. #3

roccato opened this issue Feb 1, 2023 · 2 comments
Assignees
Milestone

Comments

@roccato
Copy link

roccato commented Feb 1, 2023

While using the kit to migrate we encountered the following error on several of our state files.
This was from running the apply on the manager-stack

│ Error: could not create stack mounted file: validation failed: file is too large, max size is 2MB

The state files we have failing to mount range anywhere from 1.2M to 7.4M.
I attempted to mount them in the UI and that also failed, which leads me to believe this is an api constraint with mounted files and not one specific to the migration kit.

In any case, 2MB seems like a very tight constraint considering the potential size of a terraform state file. Can that limit be bumped? Can the migration kit use another method?

@jmfontaine
Copy link
Contributor

Thanks for reporting this. We will look into it.

@jmfontaine
Copy link
Contributor

@roccato Thanks for your patience.

This limitation will be removed in an upcoming release, but until then, we documented the workaround: https://github.com/spacelift-io/spacelift-migration-kit#state-files-bigger-than-2mb.

Hope it helps.

@jmfontaine jmfontaine added this to the 2.0.0 milestone Mar 30, 2024
@jmfontaine jmfontaine self-assigned this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants