-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlambda.tf
More file actions
69 lines (56 loc) · 1.54 KB
/
Copy pathlambda.tf
File metadata and controls
69 lines (56 loc) · 1.54 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
resource "aws_lambda_function" "market_financials_function" {
function_name = "market_financials_function"
package_type = "Image"
image_uri = "${aws_ecr_repository.market_financials.repository_url}:latest"
role = aws_iam_role.market_financials_role.arn
memory_size = 512
timeout = 30
architectures = [ "x86_64" ]
lifecycle {
ignore_changes = [ image_uri ]
}
tags = {
project = "market-financials"
}
}
resource "aws_lambda_function" "market_financials_auth_function" {
function_name = "market_financials_auth_function"
package_type = "Image"
image_uri = "${aws_ecr_repository.market_financials_authorizer.repository_url}:latest"
role = aws_iam_role.market_financials_role.arn
memory_size = 128
timeout = 5
architectures = [ "x86_64" ]
lifecycle {
ignore_changes = [ image_uri ]
}
environment {
variables = {
DYNAMODB_AUTH_TABLE_NAME = aws_dynamodb_table.market_financials_api_auth_table.name
}
}
tags = {
project = "market-financials"
}
}
resource "aws_lambda_function" "email_api_function" {
function_name = "email_api_function"
package_type = "Image"
image_uri = "${aws_ecr_repository.email_api.repository_url}:latest"
role = aws_iam_role.email_api_role.arn
memory_size = 2048
timeout = 50
architectures = [ "x86_64" ]
lifecycle {
ignore_changes = [ image_uri ]
}
environment {
variables = {
AWS_LWA_REMOVE_BASE_PATH = "/prod"
PORT = "8080"
}
}
tags = {
project = var.email-api-tag
}
}