Files
devops-directive-terraform-…/06-organization-and-modules/web-app-module/variables.tf
sidpalas 9949d314f3 Updates from bitrot livestream (#16)
- Remove minor version pin for postgres versions (i.e. 12.5 -> 12)
- Update s3 config to use separate versioning and encryption terraform resources
- Use bucket_prefix instead of bucket for bucket naming to avoid name conflicts

Stream: https://youtu.be/KWwKPYuOGBw
2023-01-13 12:43:41 -05:00

74 lines
1.3 KiB
HCL

# General Variables
variable "region" {
description = "Default region for provider"
type = string
default = "us-east-1"
}
variable "app_name" {
description = "Name of the web application"
type = string
default = "web-app"
}
variable "environment_name" {
description = "Deployment environment (dev/staging/production)"
type = string
default = "dev"
}
# 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_prefix" {
description = "prefix of s3 bucket for app data"
type = string
}
# Route 53 Variables
variable "create_dns_zone" {
description = "If true, create new route53 zone, if false read existing route53 zone"
type = bool
default = false
}
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
}