brikis98 / terraform-up-and-running-code

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

Chapter 3 - Isolation Via Workspaces #112

Closed caneno closed 10 months ago

caneno commented 10 months ago

I am working on chapter 3 the section about Isolating workspaces on page 111 and 112, it asks to run the command terraform workspace new example1

Which everything runs as shown in the book, next the book asks to run command terraform plan This is the part that I get an error which looks like this Error: No configuration files Plan requires configuration to be present. Planning without a configuration would mark everything for destruction, which is normally not what is desired. If you would like to destroy everything, run plan with the -destroy option. Otherwise, create a Terraform configuration file (.tf file) and try again.

Is not indicated in the book, but should I just destroy previous code deployed? or am I doing something wrong?

Thank you,

caneno commented 10 months ago

Found the issue sorry for the inconvenience.

Thank you,