-
Notifications
You must be signed in to change notification settings - Fork 12
/
deploy.tf
85 lines (65 loc) · 1.47 KB
/
deploy.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
// Specify the provider and alternative access details below if needed
provider "aws" {
shared_credentials_file = var.aws_cred_file
profile = var.aws_profile
region = var.aws_region
}
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
}
}
}
module "ci_scan" {
source = "./module/ci_scan"
vpc_id = var.vpc_id
vpc_cidr = var.vpc_cidr
ci_subnet_id = var.ci_subnet_id
ci_subnet_type = var.ci_subnet_type
ci_instance_type = var.ci_instance_type
}
module "ids" {
source = "./module/ids"
vpc_id = var.vpc_id
vpc_cidr = var.vpc_cidr
ids_subnet_id = var.ids_subnet_id
ids_subnet_type = var.ids_subnet_type
ids_instance_type = var.ids_instance_type
ids_appliance_number = var.ids_appliance_number
}
variable "aws_profile" {
}
variable "aws_cred_file" {
}
variable "aws_region" {
}
variable "vpc_id" {
}
variable "vpc_cidr" {
}
variable "ci_subnet_id" {
type = list(string)
}
variable "ci_subnet_type" {
}
variable "ids_subnet_type" {
}
variable "ci_instance_type" {
default = "c5.large"
}
variable "ids_subnet_id" {
type = list(string)
}
variable "ids_instance_type" {
default = "c5.xlarge"
}
variable "ids_appliance_number" {
}
output ProtectedVPC {
value = module.ci_scan.ProtectedVPC
}
output NumberOfIDSAppliancesDeployed {
value = module.ids.NumberOfIDSAppliancesDeployed
}