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:26] – walkeradmin | using_terraform [2017/08/05 13:48] – [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 67: | Line 72: | ||
\\ | \\ | ||
This is the type of output you will get if your script file does not contain any errors. | This is the type of output you will get if your script file does not contain any errors. | ||
+ | \\ | ||
+ | \\ | ||
+ | |||
+ | ---- | ||
+ | ==== 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. | ||
+ | \\ | ||
+ | \\ | ||
+ | Here is my AWS account with no configured EC2 Instances. | ||
+ | \\ | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | 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.) | ||
+ | \\ | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ |
using_terraform.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1