-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
37 lines (30 loc) · 927 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
# main
# module "domain" {
# source = "github.com/nalbam/terraform-aws-route53?ref=v0.12.29"
# root_domain = var.domain
# acm_certificate = false
# }
module "dev-lambda" {
source = "github.com/nalbam/terraform-aws-lambda-api?ref=v0.12.2"
region = var.region
name = var.name
stage = var.stage
description = "docker > lambda > circleci"
runtime = "nodejs8.10"
handler = "index.handler"
memory_size = 512
timeout = 5
s3_bucket = var.s3_bucket
s3_source = "target/lambda.zip"
s3_key = "lambda/${var.name}/${var.name}.zip"
http_methods = ["ANY"]
# // domain
# zone_id = module.domain.zone_id
# certificate_arn = module.domain.certificate_arn
# domain_name = "${var.stage}-${var.name}.${var.domain}"
env_vars = {
PROFILE = var.stage
CIRCLECI_API = var.CIRCLECI_API
CIRCLECI_TOKEN = var.CIRCLECI_TOKEN
}
}