Verifying Terraform
Verification is a necessary step in the Terraform setup process.
-
Open a new Command Prompt with administrative privileges.
-
Navigate to the directory containing the Terraform executable by setting the path.
-
Run the command
terraform init
as displayed in the image below.
-
Run the command
terraform apply
.
The examples below display the command prompt with outputs for possible variables.
Output for Get Secret
Output for Create Secret
The newly created secret ID is highlighted
Output for Update Secret
Verifying Terraform When Encrypting State File Data on Local Drive
To perform a verification:
-
Open a new command prompt with administrative privileges.
-
Navigate to the directory containing the Terraform executable by setting the path.
-
Set the user credentials in environment variables.
-
Run the script wrapper
terraform_init.bat
for theterraform init
command. -
Run the script wrapper
terraform_apply.bat
for theterraform apply
command. -
Optionally, run the script wrapper
terraform_destroy.bat
for theterraform destroy
command.