-
Notifications
You must be signed in to change notification settings - Fork 245
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
Bring back (modified) terraform-github-actions #39
Comments
The problem I had with the previous The new |
@heathsnow What I am proposing would not use Docker-based steps. Instead, they would be composite steps, which execute directly on the runner, thus having access to whatever else you put on there. |
Ah, I was unaware of the composite run step concept. Thanks! |
Thank you for writing this up! I was also unaware of composite run steps. I wish this was available when we were in the process of rewriting this action since it seems like a good fit for a CLI tool like Terraform. The Docker action proved to add unnecessary complexity (especially when Terraform already has official Docker images that can easily be used in a GitHub Actions workflow). The alternative for GitHub Actions is a native JavaScript action and JavaScript isn't necessarily the best choice for a CLI tool. I'd like to see a proof of concept for what this action would look like using composite run steps. I'm in the process of looking for a new maintainer for this project since I transferred teams at HashiCorp. I've been chatting with Project Management to see what our options look like. Either way, I'm going to keep this issue open since it seems to be a viable alternate implementation. |
@marcind and I implemented the bare minimum of what we needed as composite GitHub Actions here: This does not cover every subcommand that was previously implemented. I know this is a little confusing too but the company we work for made a policy change about allowing us to use our own GitHub accounts instead of a separate one. So @mdobosz-isp and @abatilo-isp that you might see on commit history are now @marcind and @abatilo. |
Another option specifically for installing terraform might be to use One particular benefit is that it can detect and use the exact version that you have defined with |
The request in this issue is to make the functionality of |
@sudomateo Any news on new ownership of this action? |
Unfortunately not. |
For anyone else coming here, this one by @robburger seems promising at the moment: |
I also raised an issue over at SublimeText/Terraform#51 for discussing improving upon the shared Would be lovely to see someone from HashiCorp join the effort? ❤️ |
Adding my voice here, aside from the overall functionality changes, I think the core thing I would like to see here is a separation of setup/wrap. That way we can use a custom installer, and still benefit from the wrapper. |
This is something I pushed for when this action was first being developed and I was outvoted in favor of a combined action. I no longer maintain this action, but I can echo your concerns to others internally. Appreciate all the feedback here! |
Please read in full before dismissing suggestion based on the title alone.
terraform-github-actions
was justifiably obsoleted because it suffered from a few issues:terraform
over and over in every step that used it (thus causing workflows that used multiple different terraform steps to take longer than necessary)However, the action also offered a number of benefits:
-detailed-exitcode
and other flags, status code propagation, color removal, etc when handling command outputIt made it really simple to build a PR review/approval workflow that is still challenging to build with
setup-terraform
alone (e.g. knowing when to set a step tocontinue-on-error: true
, etc.).Recent developments in the GH Actions world mean that the aforementioned issues can be addressed more elegantly today:
setup-terraform
exists, which can be used to handle the installation of the binary (there are also alternatives out there, starting with the fact that terraform in preinstalled on the github hosted runners, or version management utilities like asdf exist).My proposal is thus to bring back
terraform-github-actions
with the following changes:tf_actions_version
action argument)This way, we can chose to use the higher-level functionality of
terraform-github-actions
or invoke terraform directly via run steps.The text was updated successfully, but these errors were encountered: