This is a sample repository that is preconfigured to provision the following resources using Terragrunt:
- App service plan
- App Service
- SQL database server
- SQL database
- Run
az login
and ensure you are connected to the proper subscription - Run
terraform init
from within/bootstrap
folder - Run
terraform apply
in/bootstrap
folder; this will create several resource groups and a storage account. - Observe command output to grab state file storage account name and container (run
terraform output
from within/bootstrap
folder)
container_name = "example"
storage_account_name = "4a16aa0287e60d48tf"
storage_account_resource_group = "shared"
- Populate
_base_modules/global.hcl
to contain correct storage account information - From within any environment folder run,
terragrunt run-all init
- Next run
terragrunt run-all plan
- Finally run
terragrunt run-all apply
to provision your infrastructure using Terragrunt.