Complete the code to specify the Terragrunt configuration file format.
terraform {
source = "./modules/[1]"
}The source attribute points to the module directory, here network is a common module name.
Complete the code to include a remote state backend configuration in Terragrunt.
remote_state {
backend = "[1]"
config = {
bucket = "my-terraform-state"
}
}The s3 backend stores Terraform state files in an AWS S3 bucket.
Fix the error in the Terragrunt configuration to correctly include a dependency block.
dependency "vpc" { config_path = "../[1]" }
The dependency block references the network module directory to get outputs.
Fill both blanks to configure inputs and locals in Terragrunt.
inputs = {
environment = "[1]"
region = "[2]"
}Setting environment to dev and region to us-east-1 is a common practice for development in AWS.
Fill all three blanks to define a Terragrunt configuration with remote state, inputs, and dependency.
remote_state {
backend = "[1]"
config = {
bucket = "terraform-state-bucket"
}
}
inputs = {
app_name = "[2]"
}
dependency "db" {
config_path = "../[3]"
}This configuration uses the s3 backend for remote state, sets the application name to myapp, and depends on the database module.