-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.tf
36 lines (30 loc) · 1017 Bytes
/
vars.tf
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
# AWS account Access & Secret key variables
variable "AWS_ACCESS_KEY" {}
variable "AWS_SECRET_KEY" {}
# ap-south-1 i.e. Mumbai Region
variable "AWS_REGION" {
default = "ap-south-1"
}
# CIDR (Classless Inter-Domain Routing also called as supernetting) block of VPC
variable "VPC_CIDR_BLOCK" {
default = "11.0.0.0/24"
}
# CIDR block of subnet 1 (az=ap-south-1a)
variable "SUBNET_CIDR_BLOCK_1" {
default = "11.0.0.0/25"
}
# CIDR block of subnet 2 (az=ap-south-1b)
variable "SUBNET_CIDR_BLOCK_2" {
default = "11.0.0.128/25"
}
# AZ(Availability Zones) for vpc
variable "AVAIL_ZONES" {
default = ["ap-south-1a", "ap-south-1b"]
}
# Local Variables to store Dynamic resource ids
locals {
terra_vpc_id = aws_vpc.terra_autoscalingwebserver_vpc.id # VPC id created using terraform
alb_dns = aws_lb.terra_alb.dns_name # ALB dns name
alb_arn = aws_lb.terra_alb.arn # ALB arn
launch_template_id = aws_launch_template.terra_lt.id # Launch Template id
}