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
1 answer

Activate a ssh sock5 proxy in a Terragrunt before_hook

I am trying to activate a ssh sock5 proxy before applying a RDS Terraform stack. For this I configure the ssh command into a Terragrunt before_hook block, example below: before_hook "ssh_tunnel_start" { commands = ["init", "plan", "apply"] …
skualito
  • 87
  • 7
0
votes
1 answer

Ansible play fails due to github authentication

I am running a terragrunt script through the ansible play using the ansible shell module. Ansible task environment: AWS_ACCESS_KEY_ID: "{{aws_access_key_id}}" AWS_SECRET_ACCESS_KEY: "{{aws_secret_access_key}}" …
shamon shamsudeen
  • 5,466
  • 17
  • 64
  • 129
0
votes
0 answers

Share aws_route53_record between terragrunt configs?

So, I have one terragrunt config for the domain itself, this contains a static domain verification record entry. Now, I want to add a second "record" to this record from a second config that automates a second process fully within the terragrunt…
lobbin
  • 127
  • 1
  • 12
0
votes
1 answer

Terragrunt + Terraform with modules + GITLab

I'm using my infrastructure (IAC) at aws with terragrunt + terraform. I already added the ssh key, GPG key to the git lab and left the repository unprotected in the branch, to do a test, but it didn't work This would be the module call, coming to be…
0
votes
2 answers

terraform apply from not generated resource

I'm trying to create a list of maps from my list of subnet names so I've created the following: created a variable named subnet_names of type list of strings created a null resource block to create a list of maps from this list, like…
MrByte
  • 97
  • 1
  • 10
0
votes
2 answers

Cant redirect terragrunt output within a jenkins pipeline job

I have a jenkins multibranch pipeline where I run terragrunt code, in order to clean up the output logs I would like to redirect the terragrunt destroy output to a txt file and archive it. Locally everything works as expected, but on jenkins the txt…
Dom
  • 205
  • 2
  • 9
0
votes
2 answers

attach security group created in another app

folder structure. I am creating the following for 2 seperate applications using same modules in terragrunt LB Instances Security Groups my question is how do I reference a security group created for app1 in app2? eg. in app1 I can references it…
testuser
  • 33
  • 4
0
votes
2 answers

Can't download terraform module

I've the infrastructure of my app defined in terraform/terragrunt. To be able to deploy the full app in different environments I created a single module with the whole app. However I keep getting: Error downloading modules: Error loading modules:…
Federico
  • 1,636
  • 2
  • 22
  • 24
0
votes
1 answer

Terraform Remote State using incorrect file

We are using Terraform with an S3 backend via Terragrunt. Recently, someone tried to use a Terraform workspace, and subsequently deleted the workspace, not our remote state cannot find any of the outputs which are in the correct state file. Upon…
Luke
  • 603
  • 2
  • 11
  • 35
0
votes
1 answer

Asked to enter values for variables set in terraform module using terragrunt

I have a terragrunt project with the following structure: |---terraform.tfvars |---account | |---us-east-1 | |---nonprod | |---s3 | |---terraform.tfvars |---modules | |---s3 | |---main.tf |---source …
gpian
  • 245
  • 4
  • 15
0
votes
1 answer

Is there a way to merge terraform variables to use same module across multiple AWS regions?

I'm brand new to terraform, and I'm utilizing terragrunt to help me get things rolling. I have a decent amount of infrastructure to migrate and get set up w/ terraform, but I'm getting my feet underneath me first. We have multiple VPC's in…
veilig
  • 5,085
  • 10
  • 48
  • 86
0
votes
2 answers

Terragrunt errors saying terraform not in %PATH% even though it is

I am trying to use Terragrunt for the first time. I have directory with terraform.tfvars. When I run "terragrunt get" just to get ball rolling, I get: [terragrunt] 2017/08/08 11:08:14 exec: "terraform": executable file not found in %PATH% This…
Mamun
  • 2,322
  • 4
  • 27
  • 41
-1
votes
0 answers

Delete a single module using only terragrunt commands

I am using a combination of terragrunt and terraform to deploy my infra and the pipelines are in Azure Devops. While developing I am constantly running into having to commit multiple times if I have to delete a module. As terragrunt relies on…
Ritwik Singh
  • 75
  • 1
  • 8
-1
votes
1 answer

Terragrunt - get specific folder name

I have a file structure like this: /git/projects/terragrunt-project/dev/vnet/terragrunt.hcl I know that basename(dirname(get_terragrunt_dir())) will give me vnet How can I pull out dev using a built in fuction?
Dave
  • 29
  • 4
-1
votes
1 answer

ECS privileged container non root user cannot user docker Got permission denied while trying to connect to the Docker daemon

The ongoing issues is related to using a non root user inside the container. On my local pc, I am using the exact same image and forging start with the created user. Dockerfile: RUN groupadd "runner" && useradd -g "runner" --shell /bin/bash "runner"…
S1c0r4x
  • 47
  • 2
  • 6
1 2 3
18
19