Files
devops-directive-terraform-…/04-variables-and-outputs/examples/variables.tf
2021-05-05 08:13:24 -07:00

31 lines
641 B
HCL

# should specify optional vs required
variable "instance_name" {
description = "Name of ec2 instance"
type = string
}
variable "ami" {
description = "Amazon machine image to use for ec2 instance"
type = string
default = "ami-011899242bb902164" # Ubuntu 20.04 LTS // us-east-1
}
variable "instance_type" {
description = "ec2 instance type"
type = string
default = "t2.micro"
}
variable "db_user" {
description = "username for database"
type = string
default = "foo"
}
variable "db_pass" {
description = "password for database"
type = string
sensitive = true
}