From 87c20012f0504f515c77857872088368c81f50dc Mon Sep 17 00:00:00 2001 From: Maxwell Moon Date: Tue, 20 Jun 2023 10:35:24 -0700 Subject: [PATCH] Add missing init step in using-the-library --- .../library/usage/using-the-library.md | 21 +++++++++++++++++ docs/library/usage/using-the-library.md | 23 ++++++++++++++++++- 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/_docs-sources/library/usage/using-the-library.md b/_docs-sources/library/usage/using-the-library.md index e582862d85..aa092b9238 100644 --- a/_docs-sources/library/usage/using-the-library.md +++ b/_docs-sources/library/usage/using-the-library.md @@ -222,6 +222,27 @@ For this guide, we'll run `terraform plan` and `terraform apply` locally. We rec ::: +### Init + +Before you can run a `plan` or `apply`, you need to run an `init`, which performs a series of initialization steps to prepare the working directory for use with Terraform. + + + + +```bash +terraform init +``` + + + + +```bash +terragrunt init +``` + + + + ### Plan Now that you have created a module and a reference that is specific to a single environment and AWS region, you can run a `plan` to see the infrastructure resources that will be provisioned by the module. diff --git a/docs/library/usage/using-the-library.md b/docs/library/usage/using-the-library.md index 3b341fc34e..bb860e5e43 100644 --- a/docs/library/usage/using-the-library.md +++ b/docs/library/usage/using-the-library.md @@ -222,6 +222,27 @@ For this guide, we'll run `terraform plan` and `terraform apply` locally. We rec ::: +### Init + +Before you can run a `plan` or `apply`, you need to run an `init`, which performs a series of initialization steps to prepare the working directory for use with Terraform. + + + + +```bash +terraform init +``` + + + + +```bash +terragrunt init +``` + + + + ### Plan Now that you have created a module and a reference that is specific to a single environment and AWS region, you can run a `plan` to see the infrastructure resources that will be provisioned by the module. @@ -402,6 +423,6 @@ Finally, consider how else you might test your module. Are there additional succ