brikis98 / terraform-up-and-running-code

Code samples for the book "Terraform: Up & Running" by Yevgeniy Brikman
http://www.terraformupandrunning.com/
MIT License
2.87k stars 1.92k forks source link

Ch.2 webserver cluster instance duplicate error #17

Closed alnash28 closed 7 years ago

alnash28 commented 7 years ago

Hello @brikis98

While wrapping up Ch.2, I have encountered the following error `Error applying plan:

1 error(s) occurred:

Terraform does not automatically rollback in the face of errors. Instead, your Terraform state file has been partially updated with any resources that successfully completed. Please address the error above and apply again to incrementally change your infrastructure. ` I am not sure if this related to the version of terraform(see below) or a typo within my main.tf(which I have compared to your examples here)

terraform -v Terraform v0.7.10

Your version of Terraform is out of date! The latest version is 0.10.1. You can update by downloading from www.terraform.io

alnash28 commented 7 years ago

I updated terraform to 0.9.x per the requirements highlighted within the book, the 0.7.x version was installed previously due to a linux academy course im checking out on the same VM.

terraform -v Terraform v0.9.11

Sorry about that

alnash28 commented 7 years ago

I should be all set. Towards the end of the chapter, i performed the terraform destroy and re-applied and I seem to be ok,