mirror of
https://github.com/sidpalas/devops-directive-terraform-course.git
synced 2025-12-14 06:41:14 +00:00
initial commit
This commit is contained in:
55
04-variables-and-outputs/web-app/variables.tf
Normal file
55
04-variables-and-outputs/web-app/variables.tf
Normal file
@@ -0,0 +1,55 @@
|
||||
# General Variables
|
||||
|
||||
variable "region" {
|
||||
description = "Default region for provider"
|
||||
type = string
|
||||
default = "us-east-1"
|
||||
}
|
||||
|
||||
# EC2 Variables
|
||||
|
||||
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"
|
||||
}
|
||||
|
||||
# S3 Variables
|
||||
|
||||
variable "bucket_name" {
|
||||
description = "name of s3 bucket for app data"
|
||||
type = string
|
||||
}
|
||||
|
||||
# Route 53 Variables
|
||||
|
||||
variable "domain" {
|
||||
description = "Domain for website"
|
||||
type = string
|
||||
}
|
||||
|
||||
# RDS Variables
|
||||
|
||||
variable "db_name" {
|
||||
description = "Name of DB"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "db_user" {
|
||||
description = "Username for DB"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "db_pass" {
|
||||
description = "Password for DB"
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user