{"id":22372371,"url":"https://github.com/kenyipp/serverless-sns-sqs-offline-example","last_synced_at":"2025-07-30T21:31:58.203Z","repository":{"id":41242147,"uuid":"240076374","full_name":"kenyipp/serverless-sns-sqs-offline-example","owner":"kenyipp","description":"Minimal example of running serverless-offline with SQS and SNS in local environment.","archived":false,"fork":false,"pushed_at":"2023-03-08T14:09:45.000Z","size":2600,"stargazers_count":17,"open_issues_count":11,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T14:11:18.681Z","etag":null,"topics":["amazon-lambda","amazon-sqs","elasticmq","lambda","serverless","serverless-offline","sns","sqs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kenyipp.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}},"created_at":"2020-02-12T17:44:48.000Z","updated_at":"2024-06-28T17:08:15.000Z","dependencies_parsed_at":"2023-02-15T05:16:45.309Z","dependency_job_id":null,"html_url":"https://github.com/kenyipp/serverless-sns-sqs-offline-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kenyipp/serverless-sns-sqs-offline-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenyipp%2Fserverless-sns-sqs-offline-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenyipp%2Fserverless-sns-sqs-offline-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenyipp%2Fserverless-sns-sqs-offline-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenyipp%2Fserverless-sns-sqs-offline-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenyipp","download_url":"https://codeload.github.com/kenyipp/serverless-sns-sqs-offline-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenyipp%2Fserverless-sns-sqs-offline-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267945024,"owners_count":24170214,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["amazon-lambda","amazon-sqs","elasticmq","lambda","serverless","serverless-offline","sns","sqs"],"created_at":"2024-12-04T20:38:11.641Z","updated_at":"2025-07-30T21:31:57.837Z","avatar_url":"https://github.com/kenyipp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless SNS SQS offline Example\n\nA [Serverless](https://serverless.com/) application that demonstrate the flow of amazon SQS, SNS and lambda.\n\n## Architecture\n\n\u003cimg src=\"./architecture.png\" width=\"750px\" alt=\"Architecture\" /\u003e\n\n## Setup\n\nInstead of declare the AWS access key and secret in the serverless.yml, we use the default [AWS profile](https://docs.aws.amazon.com/sdk-for-php/v3/developer-guide/guide_credentials_profiles.html) for development and deployment to hide our keys. Fill in your own profile if you are not using the default profile.\n\nWe are using [ElasticMQ](https://github.com/softwaremill/elasticmq), an in-memory message queue system, with serverless-offline-sqs plugin to simulate the local AWS SQS environment. We have provided a docker-compose file to establish the ElasticMQ service.\n\n```sh\ncd ./elasticMQ\ndocker-compose up -d\n```\n\n### Development\n\n```sh\nnpm install\nNODE_ENV=development serverless offline start\n```\n\n### Deploy\n\n```sh\nnpm install\nnpm run deploy\n```\n\n### Run\n\n```\nnode script/invoke.js\n```\n\n## ToDo List\n\n-   [ ] Better Documentation\n-   [ ] Replace the wildcard on iamRoleStatements in serverless.yml\n-   [ ] Auth mechanism to prevent API dispose to public\n-   [ ] Error handling, Amazon SQS Dead-Letter Queues\n-   [ ] Test cases\n-   [ ] CICD pipeline\n\n## Remark\n\nThere may be a bug on serverless-webpack that [it isn't work to use webpack.DefinePlugin to declare the environment variable](https://github.com/serverless-heaven/serverless-webpack/issues/274).\n\n## License\n\nThis software is released under the MIT license. See the [license file](LICENSE) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenyipp%2Fserverless-sns-sqs-offline-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenyipp%2Fserverless-sns-sqs-offline-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenyipp%2Fserverless-sns-sqs-offline-example/lists"}