{"id":39076180,"url":"https://github.com/cloud-gov/aws_opensearch_preprocess_lambdas","last_synced_at":"2026-01-17T18:26:50.368Z","repository":{"id":316107106,"uuid":"1057376746","full_name":"cloud-gov/aws_opensearch_preprocess_lambdas","owner":"cloud-gov","description":"A testing repository for AWS Lambda functions that transform CloudWatch metric streams by enriching metrics with resource tags and filtering information.","archived":false,"fork":false,"pushed_at":"2025-12-19T17:05:08.000Z","size":188,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-22T06:59:10.646Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloud-gov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-15T16:36:22.000Z","updated_at":"2025-12-19T17:00:27.000Z","dependencies_parsed_at":"2025-10-24T16:26:19.677Z","dependency_job_id":null,"html_url":"https://github.com/cloud-gov/aws_opensearch_preprocess_lambdas","commit_stats":null,"previous_names":["cloud-gov/aws_metrics_opensearch_preprocessor","cloud-gov/aws_opensearch_preprocess_lambdas"],"tags_count":8,"template":false,"template_full_name":"cloud-gov/.github","purl":"pkg:github/cloud-gov/aws_opensearch_preprocess_lambdas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-gov%2Faws_opensearch_preprocess_lambdas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-gov%2Faws_opensearch_preprocess_lambdas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-gov%2Faws_opensearch_preprocess_lambdas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-gov%2Faws_opensearch_preprocess_lambdas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloud-gov","download_url":"https://codeload.github.com/cloud-gov/aws_opensearch_preprocess_lambdas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloud-gov%2Faws_opensearch_preprocess_lambdas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28515475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T17:57:59.192Z","status":"ssl_error","status_checked_at":"2026-01-17T17:57:52.527Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-17T18:26:49.787Z","updated_at":"2026-01-17T18:26:50.354Z","avatar_url":"https://github.com/cloud-gov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\nThis repository contains tests for AWS Lambda functions that serve as preprocessors in the AWS OpenSearch pipeline. The Lambda functions have three primary purposes:\n\n- **CloudWatch Metric Stream Transform**: Retrieve and attach relevant resource tags to metrics, filter sensitive data, and format metrics for downstream systems\n- **CloudWatch Log Transform**: Add resource tags and filtering information to log data before processing\n- **Log Group Subscription Manager**: Automatically assign subscription filters to newly created CloudWatch log groups for broker-created services\n\nThese Lambda functions run in AWS environments processing high-volume data streams and ensuring proper data enrichment and filtering before sending to S3 for ingestion into OpenSearch.\n\n## Architecture\nThe preprocessor Lambda functions sit between CloudWatch services and the OpenSearch pipeline, acting as enrichment, filtering, and routing layers:\n\n- **Metric Stream** → **Metric Transform Lambda** → **S3 Bucket** → **OpenSearch**\n- **CloudWatch Logs** → **Log Transform Lambda** → **S3 Bucket** → **OpenSearch** \n- **New Log Groups** → **Subscription Manager Lambda** → **Configured Subscription Filters** → **S3 Bucket** → **OpenSearch** \n\n## What This Repository Tests\n\n### Metric Stream Transform Lambda\n- **Environment-Specific Processing**: Validates that the Lambda works correctly across different environments (dev, staging, prod)\n- **Metric Processing**: Ensures expected metrics are processed and transformed correctly\n- **Output Formatting**: Verifies that transformed data meets downstream OpenSearch requirements\n- **Data Filtering**: Confirms sensitive information (account IDs, etc.) is properly removed before storage\n- **Tag Enrichment**: Tests that appropriate resource tags are successfully attached to metrics\n\n### CloudWatch Log Transform Lambda\n- **Log Data Enrichment**: Validates that logs are properly enriched with resource tags and metadata\n- **Log Filtering**: Ensures sensitive information is filtered from log entries before processing\n- **Format Compatibility**: Verifies log data is formatted correctly for OpenSearch ingestion\n- **Tag Enrichment**: Tests that appropriate resource tags are successfully attached to metrics\n\n\n### Log Group Subscription Manager Lambda\n- **Corrent filtering**: Tests that new CloudWatch log groups are properly filtered\n- **Broker Service Identification**: Validates correct identification of broker-created services\n- **Subscription Filter Assignment**: Ensures appropriate subscription filters are automatically configured\n- **Error Handling**: Tests proper handling of edge cases and failure scenarios\n\n## Testing Approach\n- **Unit Tests**: Individual function testing for each Lambda\n- **Integration Tests**: End-to-end pipeline testing across all three Lambda functions\n- **Environment Validation**: Cross-environment testing (dev, staging, production)\n- **Error Recovery**: Testing failure modes and recovery mechanisms","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud-gov%2Faws_opensearch_preprocess_lambdas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloud-gov%2Faws_opensearch_preprocess_lambdas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloud-gov%2Faws_opensearch_preprocess_lambdas/lists"}