-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmultiple-lambdas.tf
More file actions
51 lines (38 loc) · 1.47 KB
/
multiple-lambdas.tf
File metadata and controls
51 lines (38 loc) · 1.47 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
locals {
service_name_multiple_example = "user-service"
}
# Remember to add: https://github.com/nsbno/terraform-datadog-provider-setup
module "datadog_service_multiple_example" {
# Find newest version here: https://github.com/nsbno/terraform-datadog-service/releases
source = "github.com/nsbno/terraform-datadog-service?ref=0.1.0"
service_name = local.service_name_multiple_example
display_name = "Infrademo - User Service"
github_url = "https://github.com/nsbno/terraform-aws-lambda"
support_email = "teaminfra@vy.no"
slack_url = "https://nsb-utvikling.slack.com/archives/CSXU1BBA6"
}
data "vy_lambda_artifact" "user_service_multiple_example" {
github_repository_name = "infrademo-demo-app"
# Used for monorepos. The directory where the Lambda function code is relative to root, e.g. "services/user-service".
# working_directory = "services/user-service"
}
module "get-lambda" {
source = "../../"
enable_datadog = true
service_name = local.service_name_multiple_example
component_name = "get-user"
artifact_type = "s3"
artifact = data.vy_lambda_artifact.user_service_multiple_example
runtime = "python3.12"
handler = "handler.main"
}
module "put-lambda" {
source = "../../"
enable_datadog = true
service_name = local.service_name_multiple_example
component_name = "put-user"
artifact_type = "s3"
artifact = data.vy_lambda_artifact.user_service_multiple_example
runtime = "python3.12"
handler = "handler.main"
}