lingon
terraform-exec
lingon | terraform-exec | |
---|---|---|
6 | 9 | |
74 | 687 | |
- | 1.7% | |
9.1 | 7.1 | |
about 1 year ago | 8 days ago | |
Go | Go | |
Apache License 2.0 | Mozilla Public License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
lingon
-
How would one programmatically formatting Terraform HCL
We built Lingon (https://github.com/volvo-cars/lingon/tree/main/docs/terraform) to generate terraform HCL from Go code. It might be useful or at least a good reference of using the hclwrite package:
-
The Future of Terraform: ClickOps
We have a comparison of the main tools we looked into, for interest: https://github.com/volvo-cars/lingon/blob/main/docs/comparison.md
- Testing terraform code
-
How to parse a Kubernetes YAML in Go?
Shameless plug: We had tons of yaml to convert to Go so we built a library for it, here is an example on how to use it with CRDs https://github.com/volvo-cars/lingon/tree/main/docs/kubernetes/crd. If you are in a rush or it's more of a one-off, you can use this webapp to convert it from yaml to Go https://lingonweb.bisconti.cloud There might be a bit of documentation to read and not all CRDs are currently supported, open an issue if that is the case.
terraform-exec
-
How should i go about using Terraform in Go server application?
You still have to call the terraform CLI, and as others suggested, terraform-exec is good (we use it with Lingon).
-
The Future of Terraform: ClickOps
Debugging has actually been ok because all Lingon does is dump the HCL/YAML. For Kubernetes we shell out to kubectl and for Terraform we wrote a simple wrapper around terraform-exec that is not part of the core library. So when things go wrong, you're back to your basics.
-
Terraform Automation with Go
I'm new to Go, and since I work pretty heavily with Terraform, I thought making some terraform automation with Go would be a great little side project/lab for learning. With that said, I'm wondering if anyone has had any luck using the terraform-exec library from hashicorp (https://github.com/hashicorp/terraform-exec). I'm finding the documentation incredibly hard to follow when trying to replicate some simple CLI commands like terraform plan and extract anything meaningful from it.
-
Deploy Infrastructure using CDK for Terraform with Go
We will utilize this nice wrapper hashicorp/terraform-exec to apply the synthesized Terraform module from Go.
-
Ways to to trigger terraform modules
[hashicorp/terraform-exec sounds like what you're looking for if writing Go is okay](http://"GitHub - hashicorp/terraform-exec: Terraform CLI commands via Go." https://github.com/hashicorp/terraform-exec)
- Another Try: How do people Unit Test their go code.
-
A big thumbs down for go Unit Testing
I am using a vendor from GitHub if I have to be specific this repo.
-
Running Terraform as a Go Library?
Hashicorp has their own module for doing this you might find useful: https://github.com/hashicorp/terraform-exec
What are some alternatives?
tpm - 🛠️ A package manager for Terraform providers
terratest - Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
terracove - Recursively test a directory tree for Terraform diffs and coverage
terraform-provider-aws - The AWS Provider enables Terraform to manage AWS resources.
tfupdate - Update version constraints in your Terraform configurations
terraform-cdk - Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
tfk8s - A tool for converting Kubernetes YAML manifests to Terraform HCL
terraformer - CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code
togomak - A declarative pipeline orchestrator with the magic of HCL as a configuration language, inspired from Terraform's architecture.
terragrunt - Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.
droplets - Droplets is a platform for Gophers.
hcl - HCL is the HashiCorp configuration language.