Skip to content

Commit 83edee8

Browse files
Add new envs, update function to dump a payload (#6)
* Add new envs, update function to dump a payload * Fix test, envs * Update all function names * Fix handler references
1 parent 36c5121 commit 83edee8

File tree

13 files changed

+96
-14
lines changed

13 files changed

+96
-14
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
create_package = true
2+
create = true
3+
handler = "app.lambda_handler"
4+
cors = { allow_origins = ["*"] }
5+
source_path = "../../../../../../../src/function/"
6+
name = "platform_sample-useast1-production-000-fn-000"
7+
environment_variables = {
8+
PAYLOAD = "Primary"
9+
}
10+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include "root" {
2+
path = find_in_parent_folders()
3+
}
4+
5+
terraform {
6+
source = "git::https://github.com/launchbynttdata/tf-aws-module_primitive-lambda_function//.?ref=1.0.3"
7+
}

platform/production/us-east-2/000/terraform.tfvars

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ create = true
33
handler = "app.lambda_handler"
44
cors = { allow_origins = ["*"] }
55
source_path = "../../../../../../../src/function/"
6-
name = "platform-sample-lambda-function"
6+
name = "platform_sample-useast2-production-000-fn-000"
7+
environment_variables = {
8+
PAYLOAD = "Failover"
9+
}

platform/sandbox/us-east-2/000/terraform.tfvars

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ create = true
33
handler = "app.lambda_handler"
44
cors = { allow_origins = ["*"] }
55
source_path = "../../../../../../../src/function/"
6-
name = "platform-sample-lambda-function"
6+
name = "platform_sample-useast2-sandbox-000-fn-000"
7+
environment_variables = {
8+
PAYLOAD = "Primary-East"
9+
}
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
create_package = true
22
create = true
3-
handler = "app.alternate_lambda_handler"
3+
handler = "app.lambda_handler"
44
cors = { allow_origins = ["*"] }
55
source_path = "../../../../../../../src/function/"
6-
name = "platform-sample-lambda-function-2"
6+
name = "platform_sample-useast2-sandbox-001-fn-000"
7+
environment_variables = {
8+
PAYLOAD = "Failover-East"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
create_package = true
2+
create = true
3+
handler = "app.lambda_handler"
4+
cors = { allow_origins = ["*"] }
5+
source_path = "../../../../../../../src/function/"
6+
name = "platform_sample-uswest2-sandbox-000-fn-000"
7+
environment_variables = {
8+
PAYLOAD = "Primary-West"
9+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include "root" {
2+
path = find_in_parent_folders()
3+
}
4+
5+
terraform {
6+
source = "git::https://github.com/launchbynttdata/tf-aws-module_primitive-lambda_function//.?ref=1.0.3"
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
create_package = true
2+
create = true
3+
handler = "app.lambda_handler"
4+
cors = { allow_origins = ["*"] }
5+
source_path = "../../../../../../../src/function/"
6+
name = "platform_sample-uswest2-sandbox-001-fn-000"
7+
environment_variables = {
8+
PAYLOAD = "Failover-West"
9+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include "root" {
2+
path = find_in_parent_folders()
3+
}
4+
5+
terraform {
6+
source = "git::https://github.com/launchbynttdata/tf-aws-module_primitive-lambda_function//.?ref=1.0.3"
7+
}

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ dependencies = []
1010
dev = [
1111
"pytest>=8.4.0",
1212
"pytest-cov>=6.2.1",
13+
"pytest-mock>=3.14.1",
1314
"ruff>=0.11.13",
1415
]
1516

@@ -52,4 +53,4 @@ exclude = [
5253
"node_modules",
5354
"site-packages",
5455
".venv",
55-
]
56+
]

0 commit comments

Comments
 (0)