Difference between revisions of "Terraform: Hello world.tf"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<code>[[main.tf]]</code> | <code>[[main.tf]]</code> | ||
touch hello_world.tf | touch hello_world.tf | ||
− | output "text" { | + | |
+ | [[Terraform: output|output]] "text" { | ||
value = "hello world" | value = "hello world" | ||
} | } | ||
+ | |||
+ | == Execution example == | ||
<code>[[terraform apply]]</code> | <code>[[terraform apply]]</code> | ||
Line 34: | Line 37: | ||
* [[Terraform, read files]] | * [[Terraform, read files]] | ||
* <code>[[terraform apply]]</code> | * <code>[[terraform apply]]</code> | ||
+ | * [[Terraform examples]] | ||
== See also == | == See also == | ||
+ | * {{terraform examples}} | ||
* {{tf files}} | * {{tf files}} | ||
* {{terraform}} | * {{terraform}} | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 09:41, 17 February 2022
touch hello_world.tf
output "text" { value = "hello world" }
Execution example[edit]
An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: Terraform will perform the following actions: Plan: 0 to add, 0 to change, 0 to destroy. Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve. Enter a value: yes Apply complete! Resources: 0 added, 0 changed, 0 destroyed. Outputs: text = hello world
Related terms[edit]
See also[edit]
- Terraform examples: AWS create s3 bucket
- Terraform configuration files, Terraform state files:
.tf
,.tfvars
,main.tf, outputs.tf
,variables.tf
,.terraform.d/
,terraform init
,providers.tf
,.terraform/
,terraform.tfstate
,.terraform.lock.hcl
,terraform.tfstate.d, override.tf, versions.tf
- Terraform, OpenTofu, Terrakube.org, Installation, Terraform AWS, Terraform GCP, Terraform commands, Terraform Cloud, Terraform Enterprise (TFE), HCL, HIL, meta-arguments, providers, modules, resource, provisioners, data sources, backends: remote backends, examples, configuration files, state files, variables, types, Terraform Registry, conditionals:
depends_on
, functions, Blocks, dynamic blocks, errors, Terragrunt, Terraformer, Terratest, Terraform certifications, Terraform map type, Terraform Associate, Terraform: list type,TF_VAR_, TF_LOG
, Terraform provider versioning, Terraform Style Conventions, Required version, Terraform plugin, Terraform Named Values, tags, Changelog,tfsec, tflint
, Operators, Expressions:for, splat
, Debugging, Namespaces, Terraform Landing Zones, CDKTF, Atmos
Advertising: