Complete terragrunt toolkit with generation and validation capabilities
93
93%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
You are given the following Terragrunt file structure and contents:
File: infrastructure/terragrunt.hcl (root)
locals {
aws_region = "us-east-1"
project = "myapp"
}
remote_state {
backend = "s3"
config = {
bucket = "myapp-terraform-state"
key = "${path_relative_to_include()}/terraform.tfstate"
region = local.aws_region
dynamodb_table = "terraform-state-lock"
}
}File: infrastructure/dev/vpc/terragrunt.hcl (child module)
include {
path = find_in_parent_folders()
}
locals {
env_vars = read_terragrunt_config(find_in_parent_folders("env.hcl"))
}
terraform {
source = "git::https://github.com/myorg/modules.git//vpc?ref=v1.2.0"
}
inputs = {
environment = local.env_vars.locals.environment
vpc_cidr = "10.0.0.0/16"
}File: infrastructure/dev/env.hcl
locals {
environment = "dev"
aws_region = "us-east-1"
}Apply the Configuration Pattern Checklist from the terragrunt-validator skill to these files.
For each of the following checklist items, state whether it passes or fails and explain why:
include "root" { path = find_in_parent_folders("root.hcl") }include {})root.hcl (not terragrunt.hcl)env.hcl (not terragrunt.hcl)read_terragrunt_config()For each failure, provide the recommended fix.