-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
44 lines (37 loc) · 766 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
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.20.0"
}
}
}
provider "aws" {
region = var.aws_region
}
locals {
workload = "somecompany"
}
module "vpc" {
source = "./modules/vpc"
workload = local.workload
region = var.aws_region
}
module "kms" {
source = "./modules/kms"
}
module "kms_secondary" {
source = "./modules/kms-secondary"
aws_secondary_region = var.aws_secondary_region
}
module "ebs" {
source = "./modules/ebs"
kms_key_arn = module.kms.kms_key_arn
}
module "aurora" {
source = "./modules/rds"
workload = local.workload
vpc_id = module.vpc.vpc_id
subnets = module.vpc.public_subnets
kms_key_arn = module.kms.kms_key_arn
}