{"id":24003403,"url":"https://github.com/dmschauer/aws-cdk-lambda-pytest","last_synced_at":"2026-06-20T14:05:05.825Z","repository":{"id":184843413,"uuid":"631746250","full_name":"dmschauer/aws-cdk-lambda-pytest","owner":"dmschauer","description":"AWS CDK code written in Python to create an AWS Lambda function (also in Python) that does a basic ETL transformation. The project shows how to add pytest unit tests to the Lambda function within the CDK project.","archived":false,"fork":false,"pushed_at":"2023-04-24T01:15:41.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-08T01:10:50.252Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmschauer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-24T00:54:33.000Z","updated_at":"2023-04-24T01:10:32.000Z","dependencies_parsed_at":"2023-07-30T15:40:23.872Z","dependency_job_id":null,"html_url":"https://github.com/dmschauer/aws-cdk-lambda-pytest","commit_stats":null,"previous_names":["dmschauer/aws-cdk-lambda-pytest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmschauer%2Faws-cdk-lambda-pytest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmschauer%2Faws-cdk-lambda-pytest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmschauer%2Faws-cdk-lambda-pytest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmschauer%2Faws-cdk-lambda-pytest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmschauer","download_url":"https://codeload.github.com/dmschauer/aws-cdk-lambda-pytest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240647365,"owners_count":19834787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-08T01:10:49.361Z","updated_at":"2026-06-20T14:05:05.797Z","avatar_url":"https://github.com/dmschauer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"```\n.\n├── cdk_code\n│   └── my_cdk_stack.py\n├── src\n│   └── lambdas\n│       └── transformation\n│           └── lambda_handler.py\n└── tests\n    └── unit\n        └── lambdas\n            └── transformation\n                ├── test_lambda_handler.py\n                ├── sample_data.csv\n                └── test_event.json\n```\n---\n\n```\n.\n├── cdk_code\n│   ├── __init__.py\n│   └── my_cdk_stack.py\n├── src\n│   ├── __init__.py\n│   └── lambdas\n│       ├── __init__.py\n│       └── transformation\n│           ├── __init__.py\n│           └── lambda_handler.py\n└── tests\n    ├── __init__.py\n    └── unit\n        ├── __init__.py\n        └── lambdas\n            ├── __init__.py\n            └── transformation\n                ├── __init__.py\n                ├── test_lambda_handler.py\n                ├── sample_data.csv\n                └── test_event.json\n```\n\n\n---\n\n```\ncdk init app --language python\n.\\.venv\\Scripts\\activate.ps1\npip install aws-cdk.aws-lambda aws-cdk.aws-s3 aws-cdk.aws-apigateway pandas boto3 pytest moto\n```\n\n---\n\n\n```\nmkdir -p cdk_code\nmkdir -p src/lambdas/transformation\nmkdir -p tests/unit/lambdas/transformation\n\nNew-Item -ItemType File cdk_code/my_cdk_stack.py\nNew-Item -ItemType File src/lambdas/transformation/lambda_handler.py\nNew-Item -ItemType File tests/unit/lambdas/transformation/test_lambda_handler.py\nNew-Item -ItemType File tests/unit/lambdas/transformation/sample_data.csv\nNew-Item -ItemType File tests/unit/lambdas/transformation/test_event.json\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmschauer%2Faws-cdk-lambda-pytest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmschauer%2Faws-cdk-lambda-pytest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmschauer%2Faws-cdk-lambda-pytest/lists"}