using_terraform
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
using_terraform [2017/08/05 11:45] – [Terraform Apply] walkeradmin | using_terraform [2017/08/05 13:49] – [Terraform Apply] walkeradmin | ||
---|---|---|---|
Line 8: | Line 8: | ||
\\ | \\ | ||
\\ | \\ | ||
+ | |||
+ | ---- | ||
+ | |||
==== Terraform Plan ==== | ==== Terraform Plan ==== | ||
+ | \\ | ||
+ | \\ | ||
The terraform plan command is used to create an execution plan. Terraform performs a refresh, unless explicitly disabled, and then determines what actions are necessary to achieve the desired state specified in the configuration files. The plan can be saved using -out, and then provided to terraform apply to ensure only the pre-planned actions are executed. | The terraform plan command is used to create an execution plan. Terraform performs a refresh, unless explicitly disabled, and then determines what actions are necessary to achieve the desired state specified in the configuration files. The plan can be saved using -out, and then provided to terraform apply to ensure only the pre-planned actions are executed. | ||
\\ | \\ | ||
Line 72: | Line 77: | ||
---- | ---- | ||
==== Terraform Apply ==== | ==== Terraform Apply ==== | ||
+ | \\ | ||
+ | \\ | ||
Before starting the Terraform apply option, I suggest you log in to your AWS account so that you can monitor the progress of the script. | Before starting the Terraform apply option, I suggest you log in to your AWS account so that you can monitor the progress of the script. | ||
\\ | \\ | ||
Line 78: | Line 85: | ||
\\ | \\ | ||
\\ | \\ | ||
- | {{ : | + | {{ : |
+ | \\ | ||
+ | In the above example we can see that there is no EC2 Instance configured on this AWS account. There is a default security group that we configured, as well as our key pair. These are both specified in our Terraform script. Remember this script does not create these elements, it just uses them. | ||
+ | \\ | ||
+ | \\ | ||
+ | If we select Running Instances, then this will be empty (unless you have manually created some.) | ||
+ | \\ | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | Now we can run our Terraform Script. | ||
+ | \\ | ||
+ | \\ | ||
+ | In the command window where you ran Terraform |
using_terraform.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1