-
Notifications
You must be signed in to change notification settings - Fork 0
/
terraform.tfvars
86 lines (75 loc) · 1.98 KB
/
terraform.tfvars
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
## Create IAM user
#username = "profbob"
###### VPC parameters
# 1. Create a VPC
vpc_name = "Project_VPC"
vpc_cidr = "10.0.0.0/16"
public_source_cidr = ["0.0.0.0/0"]
public_source_cidr_v6 = ["::/0"]
#azs = ["ap-south-1a","ap-south-1b","ap-south-1c"]
# 2. Create a Internet Gateway
ig_name = "Project_IG"
# 1.3. Create 2 Route tables
public_rt = "PUBLIC_RT"
private_rt = "PRIVATE_RT"
# 1.4. Create 3 Public Subnets
public_subnets = ["10.0.1.0/24","10.0.2.0/24","10.0.3.0/24","10.0.4.0/24","10.0.5.0/24","10.0.6.0/24"]
# 1.5. Create 3 Private Subnets
private_subnets = ["10.0.7.0/24","10.0.8.0/24","10.0.9.0/24","10.0.10.0/24","10.0.11.0/24","10.0.12.0/24"]
# 1.6. Create Public access Security Group
public_access_sg_ingress_rules = [
{
protocol = "tcp"
from_port = 80
to_port = 80
},
{
protocol = "tcp"
from_port = 443
to_port = 443
},
{
protocol = "tcp"
from_port = 8083
to_port = 8083
},
{
protocol = "tcp"
from_port = 22
to_port = 22
}
]
/*
### ------------- Database related Variables
db_identifier = "project-db"
db_backup_retention_period = 7
db_class = "db.t3.micro"
db_delete_protect = "false"
db_subnet_group_name = "postgres_sg"
db_engine = "postgres"
db_engine_version = "12.9"
db_name = "Project_db"
db_para_group_name = "default.postgres12"
#db_pass = "Test-NotHere"
db_storage = 100
db_storage_type = "gp2"
db_username = "Project"
is_storage_encrypted = "true"
max_allocated_storage_value = 500
muli_az_enable = "true"
############ Monitor and Alarm
delivery_email = "[email protected]"
bill_threshold_amount = 3
############ ECS Cluster variables
alb_access_log_s3_bucket = "alb-access-logs-sgr-test-20221116"
## Autosacling EC2 parameters
ec2_image_id = "ami-03dbf0c122cb6cf1d"
ec2_instance_type = "t2.micro"
ssh_keyname = "EcsKey"
max_tasks = 6
min_tasks = 1
asg_avg_cpu_target = 1.75
ecs_task_avg_cpu_target = 0.25
############# Route 53 #####
domain_name_used = "devops-expert.online"
*/