You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Terraform console command is useful for testing interpolations before using them in configurations. Terraform console will read configured state even if it is remote.
Validate command is used to validate/check the syntax of the Terraform files. A syntax check is done on all the terraform files in the directory, and will display an error if any of the files doesn't validate. The syntax check does not cover every syntax common issues.
170
+
171
+
....
172
+
$ terraform validate
173
+
....
174
+
165
175
== State
166
176
167
177
=== How to tell to Terraform you moved a ressource in a module?
@@ -208,13 +218,20 @@ $ terraform workspace list
208
218
prelive
209
219
....
210
220
221
+
=== Show current workspace
222
+
223
+
....
224
+
$ terraform workspace show
225
+
dev
226
+
....
227
+
211
228
== Tools
212
229
213
230
=== jq
214
231
215
232
jq is a lightweight command-line JSON processor. Combined with terraform output it can be powerful.
<pclass="">The Terraform console command is useful for testing interpolations before using them in configurations. Terraform console will read configured state even if it is remote.</p>
<pclass="">Visual dependency graph of terraform resources.</p>
177
178
</div>
179
+
<divclass="sect2">
180
+
<h3id="_validate">Validate</h3>
181
+
<pclass="">Validate command is used to validate/check the syntax of the Terraform files. A syntax check is done on all the terraform files in the directory, and will display an error if any of the files doesn’t validate. The syntax check does not cover every syntax common issues.</p>
0 commit comments