Variable
Terraform variables Terraform supports a few different variable formats. Depending on the usage, the variables are generally divided into inputs and outputs. The input variables are used to define values that configure your infrastructure. These values can be used again and again without having to remember their every occurrence in the event it needs to be updated. Output variables, in contrast, are used to get information about the infrastructure after deployment. These can be useful for passing on information such as IP addresses for connecting to the server. Output value : - Output values make information about our infrastructure available on the command line, and can expose information for other Terraform Configuration resource "aws_eip" "lb" { domain = "vpc" } output "public_ip" { value = aws_eip . lb } ...