Skip to content

Commit bcc4be2

Browse files
Merge pull request #93 from j3-signalroom/92-add-the-launchjson-and-templateyaml-to-be-able-to-test-aws-lambda-function-locally
92 add the launchjson and templateyaml to be able to test aws lambda function locally
2 parents 5dcca01 + 9f8eb3b commit bcc4be2

File tree

5 files changed

+45
-1
lines changed

5 files changed

+45
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.venv/
22
.DS_Store
33
**/__pycache__
4-
.vscode/
54
scratchpad.md
5+
.aws-sam/
66

77
# Local .terraform directories
88
**/.terraform/*

.vscode/launch.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"configurations": [
3+
4+
{
5+
"type": "aws-sam",
6+
"request": "direct-invoke",
7+
"name": "Invoke Lambda",
8+
"invokeTarget": {
9+
"target": "template",
10+
"templatePath": "${workspaceFolder}/template.yaml",
11+
"logicalId": "FlightConsolidatorLambda"
12+
},
13+
"lambda": {
14+
"runtime":"python3.11",
15+
"payload": {
16+
"json": {
17+
"catalog_name":"flink_kickstarter",
18+
"database_name":"flink_kickstarter",
19+
"ccaf_secrets_path": "/confluent_cloud_resource/flink_kickstarter/flink_compute_pool"
20+
}
21+
}
22+
}
23+
}]
24+
}

events/test_events.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"catalog_name":"flink_kickstarter",
3+
"database_name":"flink_kickstarter",
4+
"ccaf_secrets_path": "/confluent_cloud_resource/flink_kickstarter/flink_compute_pool"
5+
}

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ boto3>=1.35.90
22
confluent-flink-table-api-python-plugin>=1.20.42
33
setuptools>=65.5.1
44
lxml==4.9.2
5+
6+
debugpy>=1.0,<2

template.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Resources:
2+
FlightConsolidatorLambda:
3+
Type: AWS::Serverless::Function
4+
Properties:
5+
PackageType: Image
6+
ImageConfig:
7+
Command: ["handler.lambda_handler"]
8+
Metadata:
9+
Dockerfile: /Users/jeffreyjonathanjennings/j3/code_spaces/ccaf_kickstarter-flight_consolidator_app-lambda/Dockerfile
10+
DockerContext: /Users/jeffreyjonathanjennings/j3/code_spaces/ccaf_kickstarter-flight_consolidator_app-lambda
11+
DockerTag: Latest
12+
13+

0 commit comments

Comments
 (0)