-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd7a4cd
commit f33bc70
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Terragrunt Demo | ||
|
||
## Getting started | ||
|
||
This project assumes you have gathered some initial experience using Terraform/OpenTofu to create and maintain your infrastructure. | ||
|
||
Install Terraform according to their docs: | ||
[Terraform](https://www.terraform.io) | ||
|
||
Or use OpenTofu as a replacement for Terraform: | ||
[OpenTofu](https://opentofu.org) | ||
|
||
You can find all necessary steps to install Terragrunt here: | ||
[Terragrunt](https://terragrunt.gruntwork.io) | ||
|
||
We are using `tfenv` for managing the Terraform binary | ||
[tfenv](https://github.com/tfutils/tfenv.git) | ||
|
||
We are using `tgenv` for managing the Terragrunt binary | ||
[tgenv](https://github.com/cunymatthieu/tgenv.git) | ||
|
||
## Running Terragrunt | ||
|
||
Install the needed `terraform` version according to `.terraform-version`: | ||
|
||
`tfenv install` | ||
|
||
Install the needed `terragrunt` version according to `.terragrunt-version`: | ||
|
||
`tgenv install` | ||
|
||
According to the chosen environment, one would execute `terragrunt` like so: | ||
|
||
Creating a plan to see what would have been executed: | ||
|
||
`cd environment/nonlive && terragrunt plan` | ||
|
||
Execute the plan: | ||
|
||
`cd environment/nonlive && terragrunt apply` |