Keep your AWS credentials secure. You can retrieve them with:Or log in via the provided link using your username and password. Consider opening a second terminal tab to streamline copy-and-paste.
1. Configure the VPC Module
InTerraform stack/VPC/terragrunt.hcl, reference the remote AWS VPC module (v5.8.1) from the Terraform Registry:
2. Configure a Custom Terragrunt Cache
Terragrunt can cache downloaded modules locally to speed up repeated runs. Add a top-leveldownload_dir in your root terragrunt.hcl:
3. Prevent Accidental Destruction
Protect critical resources by adding aprevent_destroy lifecycle rule:
prevent_destroy setting.
If you need to remove the resource later, you must first remove or comment out the
prevent_destroy block.4. Use a Specific IAM Role
All Terragrunt operations should assume theKodeKloudTerragruntRole role. Retrieve your AWS account ID:
terragrunt.hcl:
5. Specify a Custom Terraform Binary & Version
Use the Terraform 1.82 binary packaged in this stack:6. Enforce a Terragrunt Version Constraint
Require Terragrunt in the>= 0.34.0, < 0.40.0 range: