forked from opstree/spring3hibernate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvar.tf
122 lines (106 loc) · 2.96 KB
/
var.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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
variable "region" {
type = string
default = "ap-south-1"
description = "Enter the region in which Infra will created"
}
variable "vpc_name" {
type = string
default = "Sonarqube_vpc"
description = "Enter the VPC name"
}
variable "vpc_cidr" {
type = string
default = "10.0.0.0/16"
description = "Enter the vpc cidr"
}
variable "bastion_sg_name" {
type = string
default = "Sonarqube-bastion-sg"
description = "Enter the security group name for bastion"
}
variable "enable_nat_gateway" {
type = bool
default = true
description = "Enter the value for NAT true/false"
}
variable "az" {
type = list(string)
default = ["ap-south-1a", "ap-south-1b", "ap-south-1c"]
description = "Enter the Availability Zones"
}
variable "private_subnets" {
type = list(string)
default = ["10.0.3.0/24"]
description = "Enter the private subnets cidr"
}
variable "public_subnets" {
type = list(string)
default = ["10.0.1.0/24","10.0.2.0/24"]
description = "Enter the public subnet cidr"
}
variable "public_ec2_type" {
type = string
default = "t2.micro"
description = "Enter the public ec2 types"
}
variable "key_name" {
type = string
default = "ansiblehost"
description = "Enter the public instance key name"
}
variable "private_ec2_type" {
type = string
default = "t2.medium"
description = "Enter the private ec2 types"
}
# variable "ami_id" {
# type = string
# default = "ami-0c1a7f89451184c8b"
# description = "Enter the ami_id"
# }
variable "default_tags" {
type = map(any)
default = { ENV = "Sonarqube", Owner = "Neha Sinha", company = "Opstree" }
description = "Enter the tags"
}
variable "public_instance_name" {
type = string
default = "Sonarqube-Bastion"
description = "Enter the bastion name"
}
variable "private_instance_name" {
type = string
default = "Sonarqube-server"
description = "Enter the bastion name"
}
variable "private_sg_name" {
type = string
default = "Sonarqube-private-sg"
description = "Enter the private security group name"
}
locals {
ip = data.http.ip
}
variable "ingress_with_cidr_blocks" {
type = list(any)
default = [{ from_port = 22, to_port = 22, protocol = "tcp", description = "Public Access", cidr_blocks = "0.0.0.0/0" }]
description = "Enter the ports and cidrs you want to open"
}
variable "ingress_with_cidr_blocks_database" {
type = list(any)
default = [{ from_port = 22, to_port = 22, protocol = "tcp", description = "By Bastion Access", cidr_blocks = "12.0.101.0/24" }]
description = "Enter the ports and cidrs you want to open"
}
#variable "http_listeners" {
#type = list(any)
#default = [{ port = 9000, protocol = "HTTP", target_group_index = 0 }]
#}
variable "http_tcp_listeners" {
type = list(any)
default = [{ port = 80, protocol = "HTTP", target_group_index = 0 }]
}
variable "profile_name" {
type = string
description = "Enter the profile name"
default = "sonarquberole"
}