-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
aws_lambda_function.tf
91 lines (88 loc) · 2.62 KB
/
aws_lambda_function.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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
resource "aws_lambda_function" "api_gateway_dynamodb_get_item" {
architectures = ["x86_64"]
filename = data.archive_file.lambda_api_gateway_dynamodb_get_item.output_path
function_name = "AnimalCrossingApiGatewayDynamoDBGetItem"
handler = "lambda.handler"
memory_size = 128
role = aws_iam_role.lambda.arn
runtime = "python3.9"
source_code_hash = filebase64sha256(data.archive_file.lambda_api_gateway_dynamodb_get_item.output_path)
timeout = 5
environment {
variables = {
LOG_LEVEL = "INFO"
}
}
ephemeral_storage {
size = 512
}
tracing_config {
mode = "Active"
}
}
resource "aws_lambda_function" "api_gateway_dynamodb_scan" {
architectures = ["x86_64"]
filename = data.archive_file.lambda_api_gateway_dynamodb_scan.output_path
function_name = "AnimalCrossingApiGatewayDynamoDBScan"
handler = "lambda.handler"
memory_size = 128
role = aws_iam_role.lambda.arn
runtime = "python3.9"
source_code_hash = filebase64sha256(data.archive_file.lambda_api_gateway_dynamodb_scan.output_path)
timeout = 5
environment {
variables = {
LOG_LEVEL = "INFO"
}
}
ephemeral_storage {
size = 512
}
tracing_config {
mode = "Active"
}
}
resource "aws_lambda_function" "state_machine_dynamodb_put_item" {
architectures = ["x86_64"]
filename = data.archive_file.lambda_state_machine_dynamodb_put_item.output_path
function_name = "AnimalCrossingStateMachineDynamoDBPutItem"
handler = "lambda.handler"
memory_size = 128
role = aws_iam_role.lambda.arn
runtime = "python3.9"
source_code_hash = filebase64sha256(data.archive_file.lambda_state_machine_dynamodb_put_item.output_path)
timeout = 5
environment {
variables = {
LOG_LEVEL = "INFO"
}
}
ephemeral_storage {
size = 512
}
tracing_config {
mode = "Active"
}
}
resource "aws_lambda_function" "state_machine_s3_put_object" {
architectures = ["x86_64"]
filename = data.archive_file.lambda_state_machine_s3_put_object.output_path
function_name = "AnimalCrossingStateMachineS3PutObject"
handler = "lambda.handler"
memory_size = 128
role = aws_iam_role.lambda.arn
runtime = "python3.9"
source_code_hash = filebase64sha256(data.archive_file.lambda_state_machine_s3_put_object.output_path)
timeout = 5
environment {
variables = {
LOG_LEVEL = "INFO"
}
}
ephemeral_storage {
size = 512
}
tracing_config {
mode = "Active"
}
}