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

Allow local runs #691

Closed
wonko opened this issue Feb 1, 2024 · 6 comments
Closed

Allow local runs #691

wonko opened this issue Feb 1, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@wonko
Copy link

wonko commented Feb 1, 2024

Feature description 💡

While developing new/experimental/poc/... infrastructure, it is not always easy to work through the cycle of committing and running remotely all the time. It would be good to allow a flow to run locally (and then push the state to terrakube). Iterations go much faster, not all code might end up in the project, or some infrastructure will even be destroyed before the code is ready for inclusion in the project....

(Terraform cloud has the concept of "speculative plans" for this (where only the plan phase is allowed, the apply still has to be done through the cloud platform). This is not 100% equal, and only works in limited scenarios. )

Anything else?

No response

@wonko wonko added the enhancement New feature or request label Feb 1, 2024
@alfespa17
Copy link
Member

We added that feature in this PR

#644

You can trigger a plan using the CLI driven workflow in a VCS connected repository

@wonko
Copy link
Author

wonko commented Feb 1, 2024

It still runs the code in the executor, without my local changes (uncommitted).

There are two alternatives in terraform cloud:

@alfespa17
Copy link
Member

alfespa17 commented Feb 1, 2024

There is an option in the workspace setting you need to change that to local,

You can check here:

#451
#455

After changin that to local you just need to run terraform init again to make it work

@wonko
Copy link
Author

wonko commented Feb 1, 2024

Right, looked right over that ... You might want to add this to the creation of the workspace and/or make it somehow a default on the workspace (for implicit created workspaces).

Thanks for the help!

@dcopestake
Copy link

I've just raised #758 as a feature request for default execution mode 👍

@jcanizalez
Copy link
Member

I created a PR #764 to add a default execution mode at organization level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants