mirror of
https://github.com/sidpalas/devops-directive-terraform-course.git
synced 2025-12-10 12:51:14 +00:00
31 lines
641 B
HCL
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
|
|
}
|