Difference between revisions of "Terraform console"

From wikieduonline
Jump to navigation Jump to search
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<code>[[terraform]] console</code>
+
{{lowercase}}
 +
* <code>[[terraform]] console</code> [https://developer.hashicorp.com/terraform/cli/commands/console doc]
 +
>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]].
 +
>
  
 +
== Activities ==
 +
* [[True or False? In order to use the terraform console command, the CLI must be able to lock state to prevent changes.]]
  
 +
== Related ==
 +
* <code>[[aws iam access key]]</code>
  
 
== See also ==
 
== See also ==
 
* {{terraform cmd}}
 
* {{terraform cmd}}
* {{Terraform}}
+
 
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 15:36, 4 April 2023

>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.
>

Activities[edit]

Related[edit]

See also[edit]

Advertising: