Questions tagged [terragrunt]

Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules.

Terragrunt is a thin wrapper for Terraform that provides extra tools for keeping your Terraform configurations DRY, working with multiple Terraform modules, and managing remote state.

Check out the terragrunt-infrastructure-modules-example and terragrunt-infrastructure-live-example repos for fully-working sample code that demonstrates this new folder structure.

284 questions
-1
votes
1 answer

asdf-vm won't properly install Terragrunt

I'm want to use asdf-vm with Terraform and Terragrunt in my WSL2. I was able to install Terraform and it seems to work, but I can't get Terragrunt running. I can install a version, but as soon as I try to run a command I get an error: $ terragrunt…
lkrimphove
  • 229
  • 2
  • 7
-1
votes
1 answer

How to create s3 bucket beckend and remote state with terragrunt

Hello mates i am new to terraform and terragrunt and i wanna to create s3 bucked in my code and lockID with dynamoDB for my tfstate but i don't know how to do it all in terragrunt i know how to create them manually and then create a backend but no…
-1
votes
1 answer

How to input type object variables in Terragrunt hcl files?

Hey Guys I have the following variable in my module. variable "cluster_autoscaling" { type = object({ enabled = bool min_cpu_cores = number max_cpu_cores = number min_memory_gb = number max_memory_gb = number …
Kaleby Cadorin
  • 179
  • 2
  • 13
-1
votes
1 answer

How to get a relative path of terragrunt.hcl in an AWS resource's tag?

How can I tag each AWS resource with a relative path of its source/terragrunt.hcl file? Ideally, the solution, if it exists, would also work with a locally/relatively referenced modules (rather than only modules from a git repo). # In root…
-1
votes
1 answer

How to limit applying to particular directories when invoking Terragrunt's `run-all` command?

I am curious if there is a way to exclude some directories from Terragrunt's run-all command. The documentation is here. For example, instead of queuing all directories for destroy with the following output when running terragrunt run-all…
rsmets
  • 789
  • 1
  • 13
  • 23
-1
votes
2 answers

brew install terragrunt: Error: terraform is already installed from hashicorp/tap

When I try to install terragrunt on macos with brew, I get the following error: ==> Installing dependencies for terragrunt: terraform Error: terraform is already installed from hashicorp/tap! Please `brew uninstall terraform` first."
-1
votes
1 answer

Getting too many arguments in call to spdy.NewRoundTripperWithProxy error when i try to run my terratest go code for validating EKS cluster on AWS

Getting too many arguments in call to spdy.NewRoundTripperWithProxy error when i try to run my terratest go code which deploys, validates and un-deploys k8s pod to/from AWS EKS My scripts were perfectly working fine 3 months back but looks like some…
-1
votes
1 answer

how to use terragrunt as pre-processor and generate terraform files

Is it possible to use terragrunt to as a pre-processor to be later used by terraform, can someone share thoughts around this. Thanks!
xbalaji
  • 982
  • 7
  • 16
-1
votes
1 answer

terraform destroy - access denied

When I call terraform destroy I will get following errors similar to the next one for any provider used. Error: fork/exec…
miroag
  • 11
-1
votes
1 answer

Alternative way for terraform S3 backend to use like variables

Variables are not supported in S3 backend I need alternative way to do this can any one suggests I go through online some are saying terragrunt some are say like python, workspaces.environments.Actually we are built some Dev environment for clients…
-1
votes
3 answers

How to install Terragrunt 0.19.x version on Mac book

How to Install terragrunt 0.19.x Version on Macbook? I tried brew install terragrunt which is Downloading 0.18.x only. Option1: brew install terragrunt touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied fatal: Unable to create…
rohit534
  • 107
  • 3
  • 8
-2
votes
1 answer

How not to delete already created resources?

I already have a bucket in the AWS account, I just want to upload the code so that the terraform does not create additional resources and deletes the existing ones. Things like lifecycle don't help, terraform gives an error. resource "aws_s3_bucket"…
highfive
  • 11
  • 2
-2
votes
1 answer

Terraform: How to get current action as variable

There is one resource which don't have pre-defined resource. So as as workaround, we preferred to used "null-resource". Let's discuss with a example (Please don't stick with this example. Try to get the nature of requirement. Played a lot with…
Ashish Kumar
  • 524
  • 6
  • 18
-3
votes
1 answer

How to avoid Terraforming ECS Task Definitions?

Terraforming a AWS ECS Service depends on this configuration: load_balancer { target_group_arn = aws_lb_target_group.foo.arn container_name = "mongo" container_port = 8080 } ‘container_name’ here needs to be the same value as what’s…
1 2 3
18
19