-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.tf
39 lines (38 loc) · 1.27 KB
/
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
module "api-lambda" {
source = "genstackio/api-lambda/aws"
version = "0.1.1"
name = "image"
env = var.env
dns = var.dns
forward_query_string = var.forward_query_string
price_class = var.price_class
geolocations = var.geolocations
dns_zone = var.dns_zone
lambda_arn = module.lambda.arn
providers = {
aws = aws
aws.acm = aws.acm
}
}
module "lambda" {
source = "./modules/lambda"
name = "${var.env}-api-image"
config_file = var.config_file
config_statics_file = var.config_statics_file
config_routes_file = var.config_routes_file
utils_file = var.utils_file
sitemap_file = var.sitemap_file
robots_file = var.robots_file
site_webmanifest_file = var.site_webmanifest_file
healthz_file = var.healthz_file
runtime = var.runtime
handler = var.handler
timeout = var.timeout
memory_size = var.memory_size
variables = var.variables
publish = var.publish
policy_statements = var.policy_statements
providers = {
aws = aws
}
}