{"id":25869453,"url":"https://github.com/tbsklg/iot-kinesis-lambda","last_synced_at":"2025-03-02T05:17:30.310Z","repository":{"id":279596709,"uuid":"938641279","full_name":"tbsklg/iot-kinesis-lambda","owner":"tbsklg","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-26T11:23:20.000Z","size":25,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T12:28:53.002Z","etag":null,"topics":["aws","kinesis-stream","lambda","rust","serverless"],"latest_commit_sha":null,"homepage":"","language":"HCL","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/tbsklg.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-25T09:19:07.000Z","updated_at":"2025-02-25T18:26:39.000Z","dependencies_parsed_at":"2025-02-26T12:29:29.996Z","dependency_job_id":"813546e5-4937-474b-8fa4-e2a23b10c886","html_url":"https://github.com/tbsklg/iot-kinesis-lambda","commit_stats":null,"previous_names":["tbsklg/iot-kinesis-lambda"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbsklg%2Fiot-kinesis-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbsklg%2Fiot-kinesis-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbsklg%2Fiot-kinesis-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbsklg%2Fiot-kinesis-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbsklg","download_url":"https://codeload.github.com/tbsklg/iot-kinesis-lambda/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241460208,"owners_count":19966519,"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":["aws","kinesis-stream","lambda","rust","serverless"],"created_at":"2025-03-02T05:17:29.799Z","updated_at":"2025-03-02T05:17:30.304Z","avatar_url":"https://github.com/tbsklg.png","language":"HCL","readme":"# AWS IoT to AWS Kinesis Data Streams to AWS Lambda in Rust\nThis project demonstrates a serverless event processing pipeline that:\n1. Captures device data from IoT topics\n2. Streams the data through Kinesis Data Streams\n3. Processes events with a Rust-based Lambda consumer\n\nWhen a message is published to the IoT topic, it's automatically delivered to a Kinesis Data Stream. A Lambda function written in Rust continuously polls the stream using an EventSourceMapping and processes the incoming data.\n\nReference: [AWS Lambda EventSourceMapping Documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html)\n\n## AWS Infrastructure\n![AWS Infrastructure diagram](infrastructure/docs/arch.svg)\n\n## Requirements\n- AWS Account with permissions\n- AWS CLI configured with credentials\n- Terraform\n- Rust\n- Cargo Lambda\n\n## Deployment\nNavigate to the infrastructure folder and run:\n\n```\nterraform init\n```\n\n```\nterraform plan\n```\n\n```\nterraform apply\n```\n\n## Test\nRun the provided simulation script to publish 100 test events to the IoT topic:\n```\n./simulate.sh\n```\n\nYou can then verify the event processing by checking the CloudWatch logs:\n1. Navigate to CloudWatch Logs in the AWS Console\n2. Find the log group: `/aws/lambda/kinesis/stream/consumer`\n3. You should see entries for each of the 10 events processed\n\n## Cleanup\nWhen you're finished with the project, remove all resources:\n\n```\nterraform destroy\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbsklg%2Fiot-kinesis-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbsklg%2Fiot-kinesis-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbsklg%2Fiot-kinesis-lambda/lists"}