Difference between revisions of "Terraform console"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
<code>[[terraform]] console</code>
 
<code>[[terraform]] console</code>
 
+
>help
 
+
The Terraform console allows you to experiment with Terraform interpolations.
 +
You may access resources in the state (if you have one) just as you would
 +
from a configuration. For example: "aws_instance.foo.id" would evaluate
 +
to the ID of "aws_instance.foo" if it exists in your state.
 +
 +
Type in the interpolation to test and hit <enter> to see the result.
 +
 +
To exit the console, type "exit" and hit <enter>, or use Control-C or
 +
[[Control-D]].
 +
>
  
 
== See also ==
 
== See also ==

Revision as of 04:06, 17 August 2021

terraform console

>help
The Terraform console allows you to experiment with Terraform interpolations.
You may access resources in the state (if you have one) just as you would
from a configuration. For example: "aws_instance.foo.id" would evaluate
to the ID of "aws_instance.foo" if it exists in your state.

Type in the interpolation to test and hit <enter> to see the result.

To exit the console, type "exit" and hit <enter>, or use Control-C or
Control-D.
>

See also

Advertising: