{"id":20666307,"url":"https://github.com/devpow112/serverless-plugin-function-value","last_synced_at":"2025-04-19T16:41:36.735Z","repository":{"id":38094740,"uuid":"289802251","full_name":"devpow112/serverless-plugin-function-value","owner":"devpow112","description":":zap: Serverless framework plugin that will automatically generate AWS CloudFormation snippets to reference a functions name, ARN or logical ID value based on the internally generated Lambda logical ID","archived":false,"fork":false,"pushed_at":"2024-11-05T18:25:02.000Z","size":9229,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-05T18:26:44.486Z","etag":null,"topics":["aws","coveralls","dependabot","github-actions","nodejs","semantic-release","serverless","serverless-plugin"],"latest_commit_sha":null,"homepage":"https://npmjs.com/serverless-plugin-function-value","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/devpow112.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":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-24T01:52:26.000Z","updated_at":"2024-11-05T18:24:20.000Z","dependencies_parsed_at":"2023-09-21T18:12:34.078Z","dependency_job_id":"94ee46d8-6d57-4bab-a057-e81cb7f38a23","html_url":"https://github.com/devpow112/serverless-plugin-function-value","commit_stats":{"total_commits":998,"total_committers":5,"mean_commits":199.6,"dds":0.4519038076152304,"last_synced_commit":"c0c3cb22f5ebbc11a381514929be9ec354189186"},"previous_names":[],"tags_count":137,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpow112%2Fserverless-plugin-function-value","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpow112%2Fserverless-plugin-function-value/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpow112%2Fserverless-plugin-function-value/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpow112%2Fserverless-plugin-function-value/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devpow112","download_url":"https://codeload.github.com/devpow112/serverless-plugin-function-value/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224964670,"owners_count":17399433,"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","coveralls","dependabot","github-actions","nodejs","semantic-release","serverless","serverless-plugin"],"created_at":"2024-11-16T19:36:48.221Z","updated_at":"2024-11-16T19:36:48.704Z","avatar_url":"https://github.com/devpow112.png","language":"JavaScript","readme":"# Serverless Function Value Plugin\n\n[![License][License Badge]][License File]\n[![Version][Version Badge]][Version Package]\n[![Release][Release Badge]][Release Workflow]\n[![Coverage][Coverage Badge]][Coverage Report]\n[![Node Version][Node Version Badge]](./package.json#L67)\n[![Serverless Version][Serverless Version]](https://serverless.com)\n\nServerless framework plugin that will automatically generate AWS CloudFormation\nsnippets to reference a functions **name**, **ARN** or **logical ID** value\nbased on the internally generated Lambda logical ID. All **2.x** versions\nsupport only Serverless **3.x**. For Serverless **2.x** please use the **1.x**\nversions.\n\n## Installation\n\n```console\nnpm i -D serverless-plugin-function-value\n```\n\n## Usage\n\n```yml\nservice: test\n\nplugins:\n  - serverless-plugin-function-value\n\nprovider:\n  name: aws\n  ...\n\nresources:\n  Resources:\n    LambdaFunctionExecutor:\n        DependsOn:\n          - ${fn.logicalid:test}\n        Type: Custom::LambdaFunctionExecutor\n        Properties:\n            ServiceToken: ${fn.arn:test}\n            Name: ${fn.name:test}\n\nfunctions:\n  test:\n    ...\n```\n\nDuring processing the `${fn.*}` related items will be resolved to either the\n`Fn::GetAtt` for `${fn.arn:*}`, `Ref` for `${fn.name:*}` or simply the logical\nID for `${fn.logicalid:*}`. The custom resource above would look like the below\nin the generated CloudFormation template.\n\n```json\n\"LambdaFunctionExecutor\": {\n    \"DependsOn\": [\n      \"TestLambdaFunction\"\n    ],\n    \"Type\": \"Custom::LambdaFunctionExecutor\",\n    \"Properties\": {\n        \"ServiceToken\": {\n            \"Fn::GetAtt\": [\n                \"TestLambdaFunction\",\n                \"Arn\"\n            ]\n        },\n        \"Name\": {\n            \"Ref\": \"TestLambdaFunction\"\n        }\n    }\n}\n```\n\n## Development\n\nDevelopment can be done on any machine that can install Node.js. Only the latest\nLTS version is tested against.\n\n### Install Dependencies\n\nInstall dependencies via `npm`.\n\n```console\nnpm i\n```\n\n### Linting\n\nExecute linters via `npm`.\n\n```console\n# git, javascript, markdown and package.json\nnpm run lint\n\n# git only\nnpm run lint:git\n\n# javascript only\nnpm run lint:js\n\n# markdown only\nnpm run lint:md\n\n# package.json only\nnpm run lint:pkg\n```\n\n### Testing\n\nExecute tests via `npm`.\n\n```console\n# lint, unit tests and integration tests\nnpm test\n\n# unit tests only\nnpm run test:unit\n\n# integration tests only\nnpm run test:integration\n```\n\n### Fixing\n\nExecute automatic fixers via `npm`.\n\n```console\n# javascript, markdown and package.json\nnpm run fix\n\n# javascript only\nnpm run fix:js\n\n# markdown only\nnpm run fix:md\n\n# package.json only\nnpm run fix:pkg\n```\n\n### Building\n\nRun a build via `npm`.\n\n```console\nnpm run build\n```\n\n\u003c!-- links --\u003e\n[License Badge]: https://img.shields.io/github/license/devpow112/serverless-plugin-function-value?label=License\n[License File]: ./LICENSE\n[Version Badge]: https://img.shields.io/npm/v/serverless-plugin-function-value?label=Version\n[Version Package]: https://www.npmjs.com/serverless-plugin-function-value\n[Node Version Badge]: https://img.shields.io/node/v/serverless-plugin-function-value\n[Release Badge]: https://github.com/devpow112/serverless-plugin-function-value/actions/workflows/release.yml/badge.svg?branch=main\n[Release Workflow]: https://github.com/devpow112/serverless-plugin-function-value/actions/workflows/release.yml?query=branch%3Amain\n[Coverage Badge]: https://img.shields.io/coveralls/github/devpow112/serverless-plugin-function-value/main?label=Coverage\n[Coverage Report]: https://coveralls.io/github/devpow112/serverless-plugin-function-value?branch=main\n[Serverless Version]: https://img.shields.io/github/package-json/dependency-version/devpow112/serverless-plugin-function-value/dev/serverless/main\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevpow112%2Fserverless-plugin-function-value","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevpow112%2Fserverless-plugin-function-value","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevpow112%2Fserverless-plugin-function-value/lists"}