Terraform: Difference between revisions
Jump to navigation
Jump to search
661 bytes removed
, 5 years ago
m
|
|
Line 226: |
Line 226: |
| === Applying the configuration === | | === Applying the configuration === |
|
| |
|
| So far we’ve only asked Terraform what it thinks it would do. Let’s try it out for real. This is where we use <code>terraform apply</code> to actually effect the changes described in the plan.
| | Now, use <code>terraform apply</code> to actually effect the changes described in the plan. |
|
| |
|
| <source lang="shell">$ terraform apply | | <source lang="shell">$ terraform apply |
Line 243: |
Line 243: |
| Terraform will perform the actions described above. | | Terraform will perform the actions described above. |
| Only 'yes' will be accepted to approve. | | Only 'yes' will be accepted to approve. |
|
| |
| Enter a value:
| |
| [... we interrupt this output to bring you an important message! ...]</source>
| |
| I’ll interrupt the output there to point out Terraform repeats the plan above, so it’s completely reasonable to skip <code>terraform plan</code> and go straight to <code>terraform apply</code>. Terraform will generate the plan and get you to sign off on it before going ahead. So I’ll reiterate that ''(singing)'' you should always check the plan before applying it.
| |
|
| |
| <source lang="shell">[... We now return you to previously scheduled programming ...]
| |
|
| |
|
| Enter a value: yes | | Enter a value: yes |