terraform-exec
terratest
terraform-exec | terratest | |
---|---|---|
9 | 46 | |
628 | 7,346 | |
0.6% | 0.4% | |
7.4 | 8.4 | |
6 days ago | 5 days ago | |
Go | Go | |
Mozilla Public License 2.0 | Apache 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.
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
terratest
-
Top Terraform Tools to Know in 2024
Terratest is a Go library that provides tools and patterns for testing infrastructure, with first-class support for Terraform, Packer, Docker, Kubernetes, and more. It's used to write automated tests for your infrastructure code.
-
Saw a not-so-good thing in my pipeline. How do we fix it?
I think I found it. This is the one right? https://github.com/gruntwork-io/terratest/
-
terracove - open-source to instantly test the health of your terraform/terragrunt repository
What it does in parallel is basically init/plan/show using terratest on every subdirectory on your repository tree or provided paths. The output is either a JSON summary or a custom made Junit XML test file you can ingest into your tests reader. It took it around 8 minutes to map the entirety of our bloated repository.
-
Trunk Based Development: Confused about how to test code before pushing to main? How does the deploy process work for many environments?
You could deploy to a separate account (usually dev first), you can use terratest, you could try something like LocalStack. I dare say there’s other methods.
-
terratest for infrastructure
Was wondering if anyone has tried https://github.com/gruntwork-io/terratest to test their infrastructure. I like it because I can write golang tests! Thats a big plus for me.
- Is there a testing framework for Kubernetes and AWS resources?
-
How long have you guys actually had the title “platform engineer”? What other titles did you have before that, if any?
Once there is a CI pipeline for delivering infra changes you can add static code analysis tools (checkov) and even start testing changes (terratest)
-
Testing Terraform infra - terratest alternatives?
https://github.com/gruntwork-io/terratest/blob/master/test/azure/terraform_azure_example_test.go https://github.com/gruntwork-io/terratest/blob/master/examples/terraform-backend-example/main.tf
-
Appreciation for terraform
Another plus is to add tests into your workflow, just by adding a run step with terratest
-
Breve guia de sobrevivência com Terraform
Terratest: Framework de testes para Terraform, os testes devem ser escritos em Golang.
What are some alternatives?
terraform-provider-aws - The AWS Provider enables Terraform to manage AWS resources.
inspec - InSpec: Auditing and Testing Framework
terraform-cdk - Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
checkov - Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew.
terraformer - CLI tool to generate terraform files from existing infrastructure (reverse Terraform). Infrastructure to Code
driftctl - Detect, track and alert on infrastructure drift
terragrunt - Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules.
Pulumi - Pulumi - Infrastructure as Code in any programming language. Build infrastructure intuitively on any cloud using familiar languages 🚀
tflint - A Pluggable Terraform Linter
terraform-aws-eks - Terraform module to create AWS Elastic Kubernetes (EKS) resources 🇺🇦
atlantis - Terraform Pull Request Automation