-
Notifications
You must be signed in to change notification settings - Fork 5
/
baselines-ecr.tf
37 lines (33 loc) · 1.27 KB
/
baselines-ecr.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
# --------------------------------------------------------------------------------------------------
# ECR Baseline - Regional
# --------------------------------------------------------------------------------------------------
module "baseline_ecr_eu-west-1" {
source = "./modules/baseline_ecr"
count = contains(var.target_regions, "eu-west-1") && var.enable_ecr_baseline ? 1 : 0
providers = {
aws = aws.eu-west-1
}
enable = contains(var.target_regions, "eu-west-1") && var.enable_ecr_baseline
rules = var.ecr_scanning_rules
scan_type = var.ecr_scan_type
}
module "baseline_ecr_us-east-1" {
source = "./modules/baseline_ecr"
count = contains(var.target_regions, "us-east-1") && var.enable_ecr_baseline ? 1 : 0
providers = {
aws = aws.us-east-1
}
enable = contains(var.target_regions, "us-east-1") && var.enable_ecr_baseline
rules = var.ecr_scanning_rules
scan_type = var.ecr_scan_type
}
module "baseline_ecr_us-east-2" {
source = "./modules/baseline_ecr"
count = contains(var.target_regions, "us-east-2") && var.enable_ecr_baseline ? 1 : 0
providers = {
aws = aws.us-east-2
}
enable = contains(var.target_regions, "us-east-2") && var.enable_ecr_baseline
rules = var.ecr_scanning_rules
scan_type = var.ecr_scan_type
}