forked from Prashant-jumpbyte/terraform-aws-inspector-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
production.tf
40 lines (31 loc) · 1.05 KB
/
production.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
resource "random_id" "random_id_prefix" {
byte_length = 2
}
data "aws_availability_zones" "available" {
state = "available"
}
locals {
production_availability_zones = "${data.aws_availability_zones.available.names}"
}
module "Inspector" {
source = "./modules/inspector"
region = "${var.region}"
environment = "${var.environment}"
random_id_prefix = "${random_id.random_id_prefix.hex}"
rule_list = var.rule_list
}
module "Cloudwatch" {
source = "./modules/cloudwatch"
region = "${var.region}"
environment = "${var.environment}"
random_id_prefix = "${random_id.random_id_prefix.hex}"
schedule_expression = "${var.schedule_expression}"
inspector_assessment_template_arn = "${module.Inspector.inspector_assessment_template_arn}"
inspector_event_role_arn = "${module.EC2IamRole.inspector_event_role_arn}"
}
module "EC2IamRole" {
source = "./modules/iam"
region = "${var.region}"
environment = "${var.environment}"
random_id_prefix = "${random_id.random_id_prefix.hex}"
}