-
Notifications
You must be signed in to change notification settings - Fork 35
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
[Feature Request] Implementing Target Local-Previewes #263
Comments
Hey, this needs investigation, however my first impression is that this is quite complicated and would require a lot of work in the backend to actually make this happen. We tend to add features to spacectl that already exist in spacelift, however this doesn't really exist, so adding this is complicated and time consuming. |
Well, local-preview is a feature that doesn't exist in the UI of Spacelift, so adding this feature will be entirely in the spacectl scope, and won't be needed in Spacelift itself |
@talqwe that totally makes sense, however developers time is limited and the backend doesn't support picking resources before planning at least once no matter if it's a normal or a local preview run. |
Hey @tomasmik ! With that in mind- is this not done via the same API that |
Hey, @moshevayner, you're correct but these runs work slightly differently. Also the request here as far as I understand is "plan specific resources only":
So using that API still forces us to plan all resources first and then replan only the selected ones (planning two times). This wouldn't save that much time. :( |
FWIW, a workaround that was discovered recently was to use
|
terraform plan -target=’resource’
provides a way to run plan only on specific resources
When running local-preview, the plan runs on all resources (our env has 1500 resources each) which can be very time consuming (4 envs with with 1500-2000 resources for example)
Can this be implemented with local-preview?
Something like:
The text was updated successfully, but these errors were encountered: