{"id":22724786,"url":"https://github.com/mridang/serverless-shortsha-plugin","last_synced_at":"2025-04-13T19:07:22.878Z","repository":{"id":243815791,"uuid":"811638142","full_name":"mridang/serverless-shortsha-plugin","owner":"mridang","description":"A plugin for the Serverless framework to add add a custom alias for the current commit","archived":false,"fork":false,"pushed_at":"2024-11-05T06:08:09.000Z","size":1288,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-11-19T00:48:02.433Z","etag":null,"topics":["aws","cloudformation","custom-resources","git","iac","serverless","serverless-plugin","version"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@mridang/serverless-shortsha-plugin","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mridang.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":"2024-06-07T02:08:51.000Z","updated_at":"2024-11-05T06:08:13.000Z","dependencies_parsed_at":"2024-07-14T15:30:16.412Z","dependency_job_id":null,"html_url":"https://github.com/mridang/serverless-shortsha-plugin","commit_stats":null,"previous_names":["mridang/serverless-shortsha-plugin"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mridang%2Fserverless-shortsha-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mridang%2Fserverless-shortsha-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mridang%2Fserverless-shortsha-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mridang%2Fserverless-shortsha-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mridang","download_url":"https://codeload.github.com/mridang/serverless-shortsha-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229082305,"owners_count":18017251,"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","cloudformation","custom-resources","git","iac","serverless","serverless-plugin","version"],"created_at":"2024-12-10T15:07:56.515Z","updated_at":"2024-12-10T15:07:57.271Z","avatar_url":"https://github.com/mridang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"A plugin for the Serverless framework to create a version alias\nfor the Lambda function which is named after the current git\nSHA.\n\nThis makes it easier to deduce the version that is running.\n\n\u003e [!NOTE]\n\u003e This plugin has only been tested with the AWS provider and will\n\u003e not work if you are deploying to other providers e.g. GCP.\n\n## Installation\n\nInstall using NPM by using the following command\n\n```sh\nnpm install --save-dev @mridang/serverless-shortsha-plugin\n```\n\nAnd then add the plugin to your `serverless.yml` file:\n\n```yaml\nplugins:\n  - @mridang/serverless-shortsha-plugin\n```\n\nA thorough guide on installing plugins can be found at\nhttps://www.serverless.com/framework/docs-guides-plugins\n\n## Usage\n\nThere isn't anything specific to be done once the plugin is installed.\nWhen you trigger a deployment, the plugin will take the short SHA\nof the current directory (assuming that the project is in fact a\na Git repository).\n\n```\n$ sls deploy\n\nDeploying test-logcls to stage dev (us-east-1)\nCompiling with Typescript...\nUsing local tsconfig.json - tsconfig.json\nTypescript compiled.\n\nWarning: Package patterns at function level are only applicable if package.individually is set to true at service level or function level in serverless.yaml. The framework will ignore the patterns defined at the function level and apply only the service-wide ones.\nWarning: cloudformation scan results:\n\nAlias \"40d313f\" added for function \"ProbotLambdaFunction\" in the CloudFormation template\n\n✔ Service deployed to stack test-logcls-dev (104s)\n\nendpoint: https://sfukfimmof3tinylzdbum77uvdu0xtznt.lambda-url.us-east-1.on.aws/\nfunctions:\n  probot: test-logcls-dev-probot (22 MB)\n\nNeed a faster logging experience than CloudWatch? Try our Dev Mode in Console: run \"serverless dev\"\n```\n\n## Contributing\n\nIf you have suggestions for how this app could be improved, or\nwant to report a bug, open an issue - we'd love all and any\ncontributions.\n\n## License\n\nApache License 2.0 © 2024 Mridang Agarwalla\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmridang%2Fserverless-shortsha-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmridang%2Fserverless-shortsha-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmridang%2Fserverless-shortsha-plugin/lists"}