TF Enterprise/Cloud support
Hi,
Wanted to ask whether this CLI works with TF Enterprise or Cloud. If so any working examples?
Also, I'm trying a few rounds to work on this CLI on Bitbucket pipelines and TFC, and so far pluralith run --show-changes results in this stdout...
→ Plan
✘ Couldn't Generate Execution Plan
running terraform plan failed -> RunGraph: RunPlan: exit status 1
✘ Posting Run To Pluralith Dashboard Failed
pluralith init works though...
Thanks. Nicholas
Hi, @DanThePutzer any ideas?
Hi @nicholastcs,
Apologies for the late reply man! We have not done any work on TFE/TFC support yet, so it is very likely to break there.
Regarding the pluralith run issue: This is what pops up when the terraform plan Pluralith runs under the hood fails. We've had a case where Terraform won't let you generate a local execution plan when using TFE/TFC as a backend.
Could you try running terraform plan -out=test and see what happens?
The other person that tested with TFC as a backend received this error message, I suspect this might be the issue you are facing as well:
Error: Saving a generated plan is currently not supported The "remote" backend does not support saving the generated execution plan locally at this time.
Thanks for reporting man! Let me know what you find!
Cheers, Dan
Hi @DanThePutzer ,
It is okay, thanks for the reply.
Any timeline for the implementation? Seems there is an API interface for pulling out state files from TFE/TFC.
https://www.terraform.io/cloud-docs/api-docs/state-versions#fetch-the-current-state-version-for-a-workspace
Thanks. Nicholas
Hi @nicholastcs,
The problem here is that we work with the terraform plan state, the TFC api seems to deliver the regular terraform state, which is structured quite differently. We are considering doing some stuff with the regular state, but have not planned it out properly yet.
Also, neither @PhiWeber nor I have worked with TFE/TFC, only OSS, and therefore lack some insight on what users of TFE/TFC would want and need. Would you be up for a chat sometime next week to scope out TFE/TFC support a bit?
Best, Dan
Hi Dan,
Our CICD system overview is shown as below:-
CLI flow:
VCS pipeline runner ---triggers run by `terraform plan <args>`---> queues a run in TFC
VCS flow:
VCS pull request & merges ---triggers run---> queues a run in TFC
I'm aware of the locality of the Terraform state file which is situated and managed by TFC, will pluralith run works with the most remote backends like s3, gcs or azurerm?
Hi @nicholastcs,
Pluralith should work with all the regular remote backends s3, gcs and azurerm. They way we work is we run terraform plan -out to save an execution plan locally and then terraform show -json on that execution plan. We then process this plan state json and draw the diagram (and then delete the local execution plan).
terraform plan -out should work with all the regular backends, but if TFC/TFE is in the mix creating the local execution plans that we currently require is blocked/not available. We need to look into how we can get to the plan state in some other way.
Hi @nicholastcs
We are in touch with HashiCorp about a TFC integration and in the process of becoming part of their partner network. I'll keep you posted once we have more on that front 👍
@DanThePutzer noted. I'm looking forward on that soon.