{"id":16320975,"url":"https://github.com/piercus/serverless-local-environment","last_synced_at":"2025-03-22T21:32:14.982Z","repository":{"id":136594818,"uuid":"120648164","full_name":"piercus/serverless-local-environment","owner":"piercus","description":"Serverless Plugin to set local environment variables","archived":false,"fork":false,"pushed_at":"2018-07-11T13:06:50.000Z","size":20,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T15:12:41.925Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/piercus.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}},"created_at":"2018-02-07T17:32:27.000Z","updated_at":"2023-08-29T22:52:17.000Z","dependencies_parsed_at":"2024-01-03T02:24:46.179Z","dependency_job_id":null,"html_url":"https://github.com/piercus/serverless-local-environment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piercus%2Fserverless-local-environment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piercus%2Fserverless-local-environment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piercus%2Fserverless-local-environment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/piercus%2Fserverless-local-environment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/piercus","download_url":"https://codeload.github.com/piercus/serverless-local-environment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245022974,"owners_count":20548631,"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":"2024-10-10T22:46:00.079Z","updated_at":"2025-03-22T21:32:14.694Z","avatar_url":"https://github.com/piercus.png","language":"JavaScript","funding_links":[],"categories":["Serverless Framework Plugins"],"sub_categories":[],"readme":"# Serverless local variables\n\n\nThis plugin helps you add some conf that will only work for `serverless invoke local`\n\nThis way : \n* you can customize the behavior when running on local\n* you can set another stage to use locally\n* You can set variables like **LD_LIBRARY_PATH** to connact to your local environment\n* You can mock your cloud ressource during your local tests\n\n\n## Install\n\n```\nnpm install --save-dev serverless-local-environment\n```\n\n## Usage\n\n\nYou can use it like \n\n**serverless.yml**\n```yml\nplugins:\n  - serverless-local-environment\n\n...\n\nfunctions:\n  my-function:\n    handler: index.handler\n    stage: dev\n    environment:\n      ENV: dev\n    local-environment:\n      ENV: local\n```\n\n\n# About LD_LIBRARY_PATH\n\nAws serverless plugin set LD_LIBRARY_PATH to `'/usr/local/lib64/node-v4.3.x/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib'` (see https://github.com/serverless/serverless/blob/4b71faf2128308894646940ce2fb64e826450972/lib/plugins/aws/invokeLocal/index.js#L95), this library is adding this value to your local LD_LIBRARY_PATH values\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiercus%2Fserverless-local-environment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiercus%2Fserverless-local-environment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiercus%2Fserverless-local-environment/lists"}