A+B: Difference between revisions
Content added Content deleted
(Added Terraform Implementation) |
|||
Line 5,308: | Line 5,308: | ||
close $in |
close $in |
||
close $out</lang> |
close $out</lang> |
||
=={{header|Terraform}}== |
|||
<lang hcl> |
|||
#Aamrun, August 15th, 2022 |
|||
variable "a" { |
|||
type = number |
|||
} |
|||
variable "b" { |
|||
type = number |
|||
} |
|||
output "a_plus_b" { |
|||
value = var.a + var.b |
|||
} |
|||
</lang> |
|||
{{out}} |
|||
<pre> |
|||
$ terraform apply -var="a=136" -var="b=745" -auto-approve |
|||
Changes to Outputs: |
|||
+ a_plus_b = 881 |
|||
You can apply this plan to save these new output values to the Terraform state, without changing any real infrastructure. |
|||
Apply complete! Resources: 0 added, 0 changed, 0 destroyed. |
|||
Outputs: |
|||
a_plus_b = 881 |
|||
$ |
|||
</pre> |
|||
=={{header|TI-83 BASIC}}== |
=={{header|TI-83 BASIC}}== |