-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
54 lines (45 loc) · 1.21 KB
/
main.tf
File metadata and controls
54 lines (45 loc) · 1.21 KB
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
50
51
52
53
54
# Get account_id with: data.aws_caller_identity.current.account_id
data "aws_caller_identity" "current" {}
################################################################
# ALWAYS ON MODULES #
################################################################
module "iam" {
source = "./production/00-iam"
tags = {
Production = "yes"
Module = "IAM"
}
}
module "billing" {
source = "./production/01-billing"
tags = {
Production = "yes"
Module = "Billing"
}
}
################################################################
# OPTIONAL MODULES #
################################################################
# module "api" {
# source = "./examples/01-api"
# tags = {
# Production = "no"
# Example = "api"
# }
# }
# module "cronjob" {
# source = "./examples/02-cronjob"
# tags = {
# Production = "no"
# Example = "cronjob"
# }
# }
# module "step_function" {
# source = "./examples/03-step-function"
# region = var.region
# account_id = data.aws_caller_identity.current.account_id
# tags = {
# Production = "no"
# Example = "step_functions"
# }
# }