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
0
votes
0 answers

unable to initialize terraform via githubaction workflow

I am trying to run my code using githubaction workflow but anytime i run the workflow I am getting this error Checking the latest version of Terraform Downloading Terraform v1.0.4 Successfully downloaded Terraform v1.0.4 Unzipping Terraform…
dcloud
  • 45
  • 6
0
votes
1 answer

AKS using Terraform - Error while installing hashicorp/azurerm v2.70.0: unexpected EOF

I'm using Ubuntu LTS 20.04. Trying to build AKS cluster with Terrfaorm(v0.15.4). Terragrunt(v0.31.1) runs on top of it. After creating a resource group in Azure, while trying to import it, it gives me error. Any idea or any guidance on how to debug…
0
votes
1 answer

Terragrunt permission denied when try to get hclfmt file from defined location

I see permission denied error when my terragrunt tries to read the file inside the ecs fargrate docker image , I see that is working when I test it locally . But it gaves error of permission denied when it tries to read the file from ecs docker…
0
votes
1 answer

how to run multiple workflow on one dir in Atlantis

In my use-case I have one dir with 2 file,where are I am calling two atlanis workflow when there is change is files.But I am getting the following error parsing atlantis.yaml: there are two or more projects with dir: "/dirabc " workspace: "default"…
Khushboo Kumari
  • 145
  • 1
  • 14
0
votes
1 answer

terragrunt before_hook failed to exectute tfsec with passing flags in it

I need to use tfsec command in before_hook in order to scan my terraform code Working condition terraform { # Before apply, run script. before_hook "scan_infra" { commands = ["apply"] execute = ["tfsec"] } Non…
0
votes
1 answer

Error launching source instance: InvalidBlockDeviceMapping: Volume of size 8GB is smaller than snapshot

I came across an issue while launching a single ec2 instance (with existing AMI having volume size=32GB) using the ec2-instance gruntwork module in terraform-aws-service-catalog. It does not allow the creation of root volume with the given snapshot…
0
votes
1 answer

Amazon Cloud - Target Groups removed

We have provisioned amazon resources (EC2, Loadbalancers, Target groups,...) using Terragrunt, when we re-apply EC2 Instances script it removes Target Groups associated to load balancer. This is due to the dependencies we create in Target Groups…
0
votes
1 answer

I getting CIDR error while doing terragrunt apply

main.tf inside modules/sg //vpc_id = var.vpc_id //all inbound traffic ingress { from_port = "22" //opens tcp 22 port for ssh to_port = "22" protocol = "tcp" cidr_blocks = [var.trusted_ip_ingress] } } variable.tf…
0
votes
1 answer

Send messages from multiple SNS topics to a single Amazon SQS

New to Terraform! I am trying to send messages from two SNS topics SNSA and SNSB to an Amazon SQS everything is good when i do a plz plan in my local and "then" i try to deploy through JENKINS which gives me an error saying: Error: error creating…
Mando
  • 75
  • 10
0
votes
1 answer

Create a main terragrunt dependency

Looking at this example project from Gruntwork, https://github.com/gruntwork-io/terragrunt-infrastructure-live-example, but tweaking it for GCP instead. I want my project to create it's own GCP project via a module and I then want the rest of the…
lobbin
  • 127
  • 1
  • 12
0
votes
1 answer

Terragrunt or Terraform define an object in variable with not known number of key/values

I have a list of objects (buckets) that I'd like to create with my module buckets = [ { name = "my_bucket", location = "EU" storage_class = "STANDARD" …
potatopotato
  • 1,024
  • 2
  • 16
  • 38
0
votes
1 answer

How to DRY S3 Buckets with different ACLs and global tags?

the following file structure: . ├── account.hcl ├── prod │   ├── env.hcl │   └── s3 │   └── terragrunt.hcl ├── region.hcl └── stage ├── env.hcl └── s3 └── terragrunt.hcl in prod and stage the env.hcl's are the same which is not…
D. Meier
  • 31
  • 1
  • 1
  • 3
0
votes
2 answers

Terraform state conflict between vpc and vpc-peering modules

I am using terraform and terragrunt for my companies aws infrastructure, general structure is like this, i have two main folder, one for modules, other one for environments and sourcing modules to environment folder using terragrunt, one module is…
0
votes
1 answer

Unable to use variable count in terragrunt

First I created a lifecycle policy using terraform uisng this link https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/dlm_lifecycle_policy . Later I used terragrunt to create the lifecycle policy but I get error using the…
Megs
  • 1
0
votes
1 answer

Reduce Terragrunt console output

Terragrunt outputs hundreds of lines of text like: [terragrunt] 2020/12/14 08:55:27 Setting download directory for module /module/name to /module/name/.terragrunt-cache and [terragrunt] [/module/name ] 2020/12/14 08:55:27 Module /module/name must…
Snowcrash
  • 80,579
  • 89
  • 266
  • 376