-
Notifications
You must be signed in to change notification settings - Fork 22
/
main.tf
49 lines (38 loc) · 886 Bytes
/
main.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
locals {
control_tower_account_ids = {
audit = "012345678902"
logging = "012345678903"
}
}
provider "aws" {
region = "eu-central-1"
}
provider "aws" {
alias = "audit"
region = "eu-central-1"
assume_role {
role_arn = "arn:aws:iam::${local.control_tower_account_ids.audit}:role/AWSControlTowerExecution"
}
}
provider "aws" {
alias = "logging"
region = "eu-central-1"
assume_role {
role_arn = "arn:aws:iam::${local.control_tower_account_ids.logging}:role/AWSControlTowerExecution"
}
}
provider "datadog" {
validate = false
}
provider "mcaf" {
aws {}
}
module "landing_zone" {
providers = { aws = aws, aws.audit = aws.audit, aws.logging = aws.logging }
source = "../../"
control_tower_account_ids = local.control_tower_account_ids
regions = {
allowed_regions = ["eu-central-1"]
home_region = "eu-central-1"
}
}