Skip to content

Commit

Permalink
Default TFVar File
Browse files Browse the repository at this point in the history
  • Loading branch information
Trex-Hub committed May 10, 2024
1 parent 467fb1c commit bc78d33
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TFVARs/first.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
output "helloUser" {
value = "Hello I'm ${var.username} and I'm ${var.age} year's old "
}

# Command used for this terraform plan -var username="Devendra" -var age=21
2 changes: 2 additions & 0 deletions TFVARs/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
age = 21
username = "ByteBard"
7 changes: 7 additions & 0 deletions TFVARs/variable.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
variable "age" {
type = number
}

variable "username" {
type = string
}

0 comments on commit bc78d33

Please sign in to comment.