-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
50 lines (40 loc) · 984 Bytes
/
variables.tf
File metadata and controls
50 lines (40 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
variable "aws_region" {
description = "AWS region"
default = "us-east-1"
}
variable "ec2_ami" {
description = "AMI ID for EC2"
default = "ami-0c02fb55956c7d316" # Ubuntu 22.04 (us-east-1)
}
variable "ec2_instance_type" {
description = "EC2 instance type"
default = "t2.micro"
}
variable "key_name" {
description = "Name of your existing EC2 key pair"
}
variable "db_name" {
description = "Name of the RDS database"
}
variable "db_user" {
description = "RDS master username"
}
variable "db_password" {
description = "RDS master password"
sensitive = true
}
variable "vpc_cidr_block" {
description = "CIDR block for the VPC"
default = "10.0.0.0/16"
}
variable "availability_zones" {
description = "List of availability zones to deploy resources across"
type = list(string)
default = ["us-east-1a", "us-east-1b"]
}
variable "project_name" {
default = "legacy-webapp"
}
variable "environment" {
default = "dev"
}