-
Notifications
You must be signed in to change notification settings - Fork 5
/
iam_access_analyzer.tf
35 lines (31 loc) · 1.22 KB
/
iam_access_analyzer.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
# Regional
module "iam_access_analyzer-us-east-1" {
source = "./modules/iam_access_analyzer"
count = var.enable_iam_access_analyzer && contains(var.target_regions, "us-east-1") ? 1 : 0
depends_on = [aws_organizations_organization.self]
enable = var.enable_iam_access_analyzer && contains(var.target_regions, "us-east-1")
providers = {
aws = aws.us-east-1
}
account_type = var.account_type
}
module "iam_access_analyzer-us-east-2" {
source = "./modules/iam_access_analyzer"
count = var.enable_iam_access_analyzer && contains(var.target_regions, "us-east-2") ? 1 : 0
depends_on = [aws_organizations_organization.self]
enable = var.enable_iam_access_analyzer && contains(var.target_regions, "us-east-2")
providers = {
aws = aws.us-east-2
}
account_type = var.account_type
}
module "iam_access_analyzer-eu-west-1" {
source = "./modules/iam_access_analyzer"
count = var.enable_iam_access_analyzer && contains(var.target_regions, "eu-west-1") ? 1 : 0
depends_on = [aws_organizations_organization.self]
enable = var.enable_iam_access_analyzer && contains(var.target_regions, "eu-west-1")
providers = {
aws = aws.eu-west-1
}
account_type = var.account_type
}