{"id":28268423,"url":"https://github.com/scup/aws-lambda-infra-functions","last_synced_at":"2026-05-08T09:33:16.110Z","repository":{"id":73059215,"uuid":"99837886","full_name":"scup/aws-lambda-infra-functions","owner":"scup","description":"Set of AWS Lambda functions used to execute common system tasks","archived":false,"fork":false,"pushed_at":"2018-04-26T19:48:34.000Z","size":43985,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-11-17T16:34:38.206Z","etag":null,"topics":["aws","aws-lambda","aws-sqs","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-08-09T17:58:35.000Z","updated_at":"2021-03-19T10:31:11.000Z","dependencies_parsed_at":"2023-05-30T22:00:33.781Z","dependency_job_id":null,"html_url":"https://github.com/scup/aws-lambda-infra-functions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scup/aws-lambda-infra-functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scup%2Faws-lambda-infra-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scup%2Faws-lambda-infra-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scup%2Faws-lambda-infra-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scup%2Faws-lambda-infra-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scup","download_url":"https://codeload.github.com/scup/aws-lambda-infra-functions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scup%2Faws-lambda-infra-functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32774893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["aws","aws-lambda","aws-sqs","nodejs"],"created_at":"2025-05-20T15:12:47.774Z","updated_at":"2026-05-08T09:33:16.102Z","avatar_url":"https://github.com/scup.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Lambda Infra functions\n\nThis project has some common lambdas that can help you to automate some tasks in your system.\n\n# How to build the lambdas\n\nYou can build the lambdas ready to upload to AWS using the following command:\n\n```bash\nyarn build\n```\n\nThe zip file will be created on **packages** folder\n\n# How to test the lambda locally\n\n```bash\nyarn debug -- --function lambda_name\n```\n\n## Configuring and using Lambdas\n\nTo use a lambda published in this library, you need to upload the zip file built by this library, set the a handler point to the specific lambda and set a group of environment variables used in the lambda configuration.\n\n### execGraphQL\n\n**handler**: lambda.execGraphQL\n\n**description**: this function provides way to executes a common GraphQL call to a GraphQL API. One possible way to use this lambda is to execute a GraphQL periodically in a type of batch process.\n\n**environment variables**:\n\n- GRAPHQL_API_URL: the full url to call a GraphQL query/mutation. Example: http://somegraphqlapi.com/graphql\n- GRAPHQL_QUERY: the query to be executed in the GraphQL API. Example: 'mutation { someMutation }'\n\n### sqsToGraphql\n\n**handler**: lambda.sqsToGraphql\n\n**description**: this function retrieves data from a SQS queue and forward it a GraphQL API to further process.\n\n**environment variables**:\n\n- GRAPHQL_API_URL: the full url to call a GraphQL query/mutation. Example: http://somegraphqlapi.com/graphql\n- GRAPHQL_QUERY: the query to be executed in the GraphQL API. Example: 'mutation ($data:String!){ someMutation(data:$data) }'\n- GRAPHQL_VAR: the name of the variable that will receive the SQS data. Example: 'data'\n- GRAPHQL_ACCEPT_BATCH: when its value is 'true' indicate that the function will do only a call to the API with all data extracted from SQS, otherwise the function will call the API multiple times, sending one message per call\n- AWS_SQS_QUEUE_URL: the ARN of the SQS queue\n- AWS_SQS_MAX_MESSAGES: maximum number of messages that will be retrieved from this function. Example: 10\n- AWS_SQS_VISIBILITY_TIMEOUT: indicate the maximum number of seconds that the data will not be visible when retrieved from SQS. Example: 30\n- AWS_SQS_REGION: AWS region where the SQS is located. Example: 'us-east-1'\n\n### sendMsgGraphql\n\n**handler**: lambda.sendMsgGraphql\n\n**description**: function that redirects an POST received into an API Gateway endpoint to a GraphQL API.\n\n**environment variables**:\n\n- GRAPHQL_API_URL: the full url to call a GraphQL query/mutation. Example: http://somegraphqlapi.com/graphql\n- GRAPHQL_QUERY: the query to be executed in the GraphQL API. Example: 'mutation ($data:String!){ someMutation(data:$data) }'\n- GRAPHQL_VAR: the name of the variable that will receive the entire content from the HTTP body. Example: 'data'\n\n### kinesisToGraphql\n\n**handler**: lambda.kinesisToGraphql\n\n**description**: function that send Kinesis Stream/Kinesis Analytics by posting them in GraphQL Api.\n\n**environment variables**:\n\n- GRAPHQL_API_URL: the full url to call a GraphQL query/mutation. Example: http://somegraphqlapi.com/graphql\n- GRAPHQL_QUERY: the query to be executed in the GraphQL API. Example: 'mutation ($data:String!){ someMutation(data:$data) }'\n- GRAPHQL_VAR: the name of the variable that will receive the entire content from the HTTP body. Example: 'data'\n- GRAPHQL_HEADERS: (Optional) an cookie formatted string of custom headers to send on request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscup%2Faws-lambda-infra-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscup%2Faws-lambda-infra-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscup%2Faws-lambda-infra-functions/lists"}