Feature #3 - Automated and Accelerated Process of Testing Terraform Commands

Automated and Accelerated Process of Testing Terraform Commands

1
$ terrahub run --apply --destroy --auto-approve
2
πŸ’‘ [s3-bucket] terraform init -no-color .
3
[s3-bucket] Initializing provider plugins...
4
[s3-bucket] Terraform has been successfully initialized!
5
[...]
6
πŸ’‘ [s3-bucket] terraform workspace list
7
[s3-bucket] * default
8
πŸ’‘ [s3-bucket] terraform workspace select default
9
πŸ’‘ [s3-bucket] terraform plan -no-color -var-file=./s3-bucket/default.tfvars -out=./s3-bucket/.terraform/terraform.tfplan -state=./s3-bucket/.terraform/terraform.tfstate
10
[s3-bucket] Refreshing Terraform state in-memory prior to plan...
11
[s3-bucket] The refreshed state will be used to calculate this plan, but will not be
12
persisted to local or remote state storage.
13
[...]
14
πŸ’‘ [s3-bucket] terraform apply -no-color -var-file=./s3-bucket/default.tfvars -auto-approve=true -state=./s3-bucket/.terraform/terraform.tfstate -backup=./s3-bucket/.terraform/terraform.tfstate.1531605774809.backup -state-out=s3-bucket/.terraform/terraform.tfstate
15
[s3-bucket] aws_s3_bucket.s3-bucket: Creating...
16
[...]
17
πŸ’‘ [s3-bucket] terraform destroy -no-color -force -var-file=./s3-bucket/default.tfvars -auto-approve=true -state=./s3-bucket/.terraform/terraform.tfstate -backup=./s3-bucket/.terraform/terraform.tfstate.1531605776615.backup -state-out=s3-bucket/.terraform/terraform.tfstate
18
[s3-bucket] Destroy complete! Resources: 0 destroyed.
19
βœ… Done
Copied!
Copy link