Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Openstack
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mitchell Moore
Terraform Openstack
Commits
4720b131
Commit
4720b131
authored
5 years ago
by
Ryan Randles Jones
Browse files
Options
Downloads
Patches
Plain Diff
added instructions on how to target specific modules in terraform plan stage
parent
49286f03
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+8
-6
8 additions, 6 deletions
README.md
with
8 additions
and
6 deletions
README.md
+
8
−
6
View file @
4720b131
...
...
@@ -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 parame
te
r
th
at will let you specify just one piece. Run it via plan like so:
**_(Note)_**
`$terraform plan -out`
wri
te
s
th
e 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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment