terraform-exec
terraformer
terraform-exec | terraformer | |
---|---|---|
9 | 109 | |
628 | 11,825 | |
0.6% | 1.4% | |
7.4 | 7.6 | |
6 days ago | 3 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
terraformer
-
Top Terraform Tools to Know in 2024
Terraformer is a CLI tool developed by Google that generates Terraform files from existing infrastructure (reverse Terraform), simplifying the process of adopting Terraform in existing environments and speeding up the initial setup process. Terraformer supports multiple cloud providers, including AWS, Google Cloud, Azure, and others.
-
Terraformer + refactoring with 'moved' blocks
Looking into efficient ways to import existing infrastructure. Using Terraformer to get the everything into Terraform and then refactoring into modules, for_each, etc. using moved blocks seems like it would be a good approach. Refactoring them to use existing modules from providers will take a little work and likely going back and forth with terraform plan, and assuming many things won't translate straight across because of what resources a module might be creating and how they are creating them.
-
The Future of Terraform: ClickOps
We had thought about the ability to convert HCL to Go, but not much thought in querying existing infra to generate HCL (like terraformer). If you want to experiment building on top of Lingon then please go ahead! I’d be happy to help provide the context from Lingon.
-
How do you glue Terraform resources together?
If "ClickOps" is your starting point, as you mention, you could try creating a new scratch cloud provider account, do all your "ClickOps", then use a TF export tool (e.g., Terraformer) to see the exported TF resources to find all the references to other TF resources in the cloud resource dependency chain.
-
Strategies for converting an existing deployment to IaC?
I haven't worked with any of the ones that purport to work with AWS, but a quick Google shows terraformer and Terracognita as options - maybe look into trying those out?
-
Migration to gcp from aws.
This maybe a bit more complicated if you're not into coding/terraform but I'd use terraformer to convert all of your infrastructure from implementation to code while in AWS, then switch providers and with a bit of jiggly of the code implement your infra into gcs as IaC and keep it that way if/when you switch again.
-
Quick terraform noob question about the tfstate
Maybe terraformer could help. I never tried it personally . https://github.com/GoogleCloudPlatform/terraformer
- Possible to backup entire Okta configuration?
-
How do I convert my CloudFormation template into a Terraform file?
I've been wondering if this tool is any good. https://github.com/GoogleCloudPlatform/terraformer/blob/master/docs/aws.md
-
Migrate from terragrunt to terraform
If you've to write the code (I assumed you just needed to reorganize it without TG) maybe consider https://github.com/GoogleCloudPlatform/terraformer
What are some alternatives?
terratest - Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
terracognita - Reads from existing public and private cloud providers (reverse Terraform) and generates your infrastructure as code on Terraform configuration
terraform-provider-aws - The AWS Provider enables Terraform to manage AWS resources.
former2 - Generate CloudFormation / Terraform / Troposphere templates from your existing AWS resources.
terraform-cdk - Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
terraforming - Export existing AWS resources to Terraform style (tf, tfstate) / No longer actively maintained
terragrunt - Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules.
gardener - Kubernetes-native system managing the full lifecycle of conformant Kubernetes clusters as a service on Alicloud, AWS, Azure, GCP, OpenStack, vSphere, KubeVirt, Hetzner, EquinixMetal, MetalStack, and OnMetal with minimal TCO.
Pulumi - Pulumi - Infrastructure as Code in any programming language. Build infrastructure intuitively on any cloud using familiar languages 🚀
terraform - Terraform enables you to safely and predictably create, change, and improve infrastructure. It is a source-available tool that codifies APIs into declarative configuration files that can be shared amongst team members, treated as code, edited, reviewed, and versioned.
terraform-aws-eks - Terraform module to create AWS Elastic Kubernetes (EKS) resources 🇺🇦
aws2tf - aws2tf - automates the importing of existing AWS resources into Terraform and outputs the Terraform HCL code.