diff --git a/README.md b/README.md index 320940d93e28acf51ec5defe8db28ff10a9d7f35..d9ccc03ff89449477c2671bf752cfbecd4e2684e 100644 --- a/README.md +++ b/README.md @@ -69,17 +69,19 @@ unzip terraform_0.12.3_linux_amd64.zip -d ~/bin - `$terraform plan -out $HOME/terraform-first-instance/terraform-plan.tf` -**_(Note)_** There's a target parameter that will let you specify just one piece. Run it via plan like so: +**_(Note)_** `$terraform plan -out` writes the plan to a file and then `terraform apply` runs that plan. -- `$terraform plan -out $HOME/terraform-first-instance/name-of-plan.tf -target=module.name-of-module-to-run` +- `$terraform apply "$HOME/terraform-first-instance/terraform-plan.tf"` -You can also target multiple modules. -- `$terraform plan -out $HOME/terraform-first-instance/name-of-plan.tf -target=module.name-of-module-to-run -target=module.name-of-other-module-to-run` +### There's a target parameter that will let you specify just one module as defined in the root main file. Run it via plan like so: -**_(Note)_** `$terraform plan -out` writes the plan to a file and then `terraform apply` runs that plan. +- `$terraform plan -out $HOME/terraform-first-instance/name-of-plan.tf -target=module.name-of-module-to-run` + +**_(Note)_** You can also target multiple modules. + +- `$terraform plan -out $HOME/terraform-first-instance/name-of-plan.tf -target=module.name-of-module -target=module.name-of-other-module` -- `$terraform apply "$HOME/terraform-first-instance/name-of-plan.tf"` ### Destroy Terraform Instance: