{"_id":"@woebot/serverless-simplify-default-exec-role-plugin","_rev":"33-684c67bb5819d15ae26ea5f622b3d2a2","name":"@woebot/serverless-simplify-default-exec-role-plugin","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.2":{"name":"@woebot/serverless-simplify-default-exec-role-plugin","version":"1.0.2","author":{"name":"Woebot Health Engineering Team"},"license":"MIT","_id":"@woebot/serverless-simplify-default-exec-role-plugin@1.0.2","maintainers":[{"name":"woebot_dj","email":"demetrius_johnson@woebothealth.com"},{"name":"denizwoebot","email":"deniz_ozgulbas@woebothealth.com"},{"name":"jlava-woebot","email":"jordan_lavatai@woebothealth.com"},{"name":"andreywbot","email":"andrey_shrayev@woebothealth.com"},{"name":"krystalpacheco","email":"krystal_pacheco@woebothealth.com"},{"name":"c_cahill","email":"cullom_cahill@woebothealth.com"},{"name":"michellemorales","email":"michelle_morales@woebothealth.com"},{"name":"aaron_pavez","email":"aaron_pavez@woebothealth.com"},{"name":"jordi-woebot","email":"jordi_jimenez@woebothealth.com"},{"name":"anastasia_goygova","email":"anastasia_goygova@woebothealth.com"},{"name":"davidshi_woebot","email":"david_shi@woebothealth.com"},{"name":"latifyahia","email":"latif_yahia@woebothealth.com"},{"name":"britt-pezzillo-wbt","email":"britt_pezzillo@woebothealth.com"},{"name":"phdharp","email":"devin_harper@woebothealth.com"},{"name":"tinatran","email":"tina_tran@woebothealth.com"},{"name":"barbeebot","email":"barbee@woebothealth.com"},{"name":"hurrythendsnear","email":"casey@woebot.io"},{"name":"woebotdavidli","email":"davidli@woebothealth.com"},{"name":"ohjann","email":"eoghan@hyn.es"},{"name":"frankwoebot","email":"frank@woebothealth.com"},{"name":"danielreidwoebot","email":"daniel_reid@woebot.io"},{"name":"tomoconnor-woebot","email":"tomoconnor@woebot.io"},{"name":"josegallegos","email":"jose_gallegos@woebot.io"},{"name":"malcolmndev","email":"malcolmn@woebot.io"},{"name":"ibon","email":"ibon@woebot.io"}],"dist":{"shasum":"c456b3928743d3026a28e646f5162a5e2b131582","tarball":"https://registry.npmjs.org/@woebot/serverless-simplify-default-exec-role-plugin/-/serverless-simplify-default-exec-role-plugin-1.0.2.tgz","fileCount":4,"integrity":"sha512-fHAEbo9HI1OxGywWwKhTuCprIczmTcymbLnbald/3YU/SWrnIkjpm0pIGP4PdPiwvtzOMFaXAubyJd96bth03Q==","signatures":[{"sig":"MEYCIQCtL+yYRj1dG+as+DzKRrk5o8SXLxedhRhsvPh8Id9r2wIhAOb1f+QPxnBPym9orIbQU4FUgT7X+lwCsqhHr+JJbMxG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5739},"main":"index.js","engines":{"node":">=14"},"gitHead":"d3bcbbd105ec0f9f9031284ebd06fa7792b3ca0c","_npmUser":{"name":"danielreidwoebot","email":"daniel_reid@woebot.io"},"_npmVersion":"8.11.0","description":"serverless-simplify-default-exec-role-plugin","directories":{},"_nodeVersion":"16.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/serverless-simplify-default-exec-role-plugin_1.0.2_1698923132708_0.7189108541828382","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@woebot/serverless-simplify-default-exec-role-plugin","version":"1.0.3","author":{"name":"Woebot Health Engineering Team"},"license":"MIT","_id":"@woebot/serverless-simplify-default-exec-role-plugin@1.0.3","maintainers":[{"name":"woebot_dj","email":"demetrius_johnson@woebothealth.com"},{"name":"denizwoebot","email":"deniz_ozgulbas@woebothealth.com"},{"name":"jlava-woebot","email":"jordan_lavatai@woebothealth.com"},{"name":"andreywbot","email":"andrey_shrayev@woebothealth.com"},{"name":"krystalpacheco","email":"krystal_pacheco@woebothealth.com"},{"name":"c_cahill","email":"cullom_cahill@woebothealth.com"},{"name":"michellemorales","email":"michelle_morales@woebothealth.com"},{"name":"aaron_pavez","email":"aaron_pavez@woebothealth.com"},{"name":"jordi-woebot","email":"jordi_jimenez@woebothealth.com"},{"name":"anastasia_goygova","email":"anastasia_goygova@woebothealth.com"},{"name":"davidshi_woebot","email":"david_shi@woebothealth.com"},{"name":"latifyahia","email":"latif_yahia@woebothealth.com"},{"name":"britt-pezzillo-wbt","email":"britt_pezzillo@woebothealth.com"},{"name":"phdharp","email":"devin_harper@woebothealth.com"},{"name":"tinatran","email":"tina_tran@woebothealth.com"},{"name":"barbeebot","email":"barbee@woebothealth.com"},{"name":"hurrythendsnear","email":"casey@woebot.io"},{"name":"woebotdavidli","email":"davidli@woebothealth.com"},{"name":"ohjann","email":"eoghan@hyn.es"},{"name":"frankwoebot","email":"frank@woebothealth.com"},{"name":"danielreidwoebot","email":"daniel_reid@woebot.io"},{"name":"tomoconnor-woebot","email":"tomoconnor@woebot.io"},{"name":"josegallegos","email":"jose_gallegos@woebot.io"},{"name":"malcolmndev","email":"malcolmn@woebot.io"},{"name":"ibon","email":"ibon@woebot.io"}],"dist":{"shasum":"a704a547986c9669805977161d51c4cf270efc0e","tarball":"https://registry.npmjs.org/@woebot/serverless-simplify-default-exec-role-plugin/-/serverless-simplify-default-exec-role-plugin-1.0.3.tgz","fileCount":4,"integrity":"sha512-aLJ9K5FiH/p5zneJ0AQUcpVO3TbB/3yBNNwbBFefTyXDK1KUc3vWboXnvivwkpaGb4Q/WyJBoRKflrgQ7jFOFg==","signatures":[{"sig":"MEUCIAF6E/YUFLHknTkIKnIMsqQYhGpNfT+e4jrj7W/VVunnAiEAv/vTd4vZXjIYKCm/NZgD7MzurJn3BanIprD/INLUJto=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6156},"main":"index.js","engines":{"node":">=14"},"gitHead":"787e4e2d03ec63a2fc523ff58efec54620967754","_npmUser":{"name":"danielreidwoebot","email":"daniel_reid@woebot.io"},"_npmVersion":"8.11.0","description":"serverless-simplify-default-exec-role-plugin","directories":{},"_nodeVersion":"16.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/serverless-simplify-default-exec-role-plugin_1.0.3_1698930106031_0.9775137926530273","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@woebot/serverless-simplify-default-exec-role-plugin","version":"1.0.4","author":{"name":"Woebot Health Engineering Team"},"license":"MIT","_id":"@woebot/serverless-simplify-default-exec-role-plugin@1.0.4","maintainers":[{"name":"woebot_dj","email":"demetrius_johnson@woebothealth.com"},{"name":"denizwoebot","email":"deniz_ozgulbas@woebothealth.com"},{"name":"jlava-woebot","email":"jordan_lavatai@woebothealth.com"},{"name":"andreywbot","email":"andrey_shrayev@woebothealth.com"},{"name":"krystalpacheco","email":"krystal_pacheco@woebothealth.com"},{"name":"c_cahill","email":"cullom_cahill@woebothealth.com"},{"name":"michellemorales","email":"michelle_morales@woebothealth.com"},{"name":"aaron_pavez","email":"aaron_pavez@woebothealth.com"},{"name":"jordi-woebot","email":"jordi_jimenez@woebothealth.com"},{"name":"anastasia_goygova","email":"anastasia_goygova@woebothealth.com"},{"name":"davidshi_woebot","email":"david_shi@woebothealth.com"},{"name":"latifyahia","email":"latif_yahia@woebothealth.com"},{"name":"britt-pezzillo-wbt","email":"britt_pezzillo@woebothealth.com"},{"name":"phdharp","email":"devin_harper@woebothealth.com"},{"name":"tinatran","email":"tina_tran@woebothealth.com"},{"name":"barbeebot","email":"barbee@woebothealth.com"},{"name":"hurrythendsnear","email":"casey@woebot.io"},{"name":"woebotdavidli","email":"davidli@woebothealth.com"},{"name":"ohjann","email":"eoghan@hyn.es"},{"name":"frankwoebot","email":"frank@woebothealth.com"},{"name":"danielreidwoebot","email":"daniel_reid@woebot.io"},{"name":"tomoconnor-woebot","email":"tomoconnor@woebot.io"},{"name":"josegallegos","email":"jose_gallegos@woebot.io"},{"name":"malcolmndev","email":"malcolmn@woebot.io"},{"name":"ibon","email":"ibon@woebot.io"}],"dist":{"shasum":"f512b176b20752977affb4385f5a617c29fd0028","tarball":"https://registry.npmjs.org/@woebot/serverless-simplify-default-exec-role-plugin/-/serverless-simplify-default-exec-role-plugin-1.0.4.tgz","fileCount":4,"integrity":"sha512-l7jIoRfIAfTfnsheCAVhsgWxmR8XC6CR4kCmO3XPBBKuWMtzwl0EPE2Y3lbjlMcNvQzhsH5DbS9qgZhLZ26pQQ==","signatures":[{"sig":"MEQCIBfns2l5nfs4+yD9s9/hTjBd0w2Yi50WzsZHfmDteyBFAiAcWsZfLyl78tw37tyh5qKeja6JWtEXIucT0WfitEtI+g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6205},"main":"index.js","engines":{"node":">=14"},"gitHead":"a3e5d7b10643d79ac52d38ac1e4f01d72dcbe2f6","_npmUser":{"name":"danielreidwoebot","email":"daniel_reid@woebot.io"},"_npmVersion":"8.11.0","description":"serverless-simplify-default-exec-role-plugin","directories":{},"_nodeVersion":"16.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/serverless-simplify-default-exec-role-plugin_1.0.4_1698930970575_0.9112541728924441","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-11-01T15:35:23.238Z","modified":"2025-10-06T12:17:13.001Z","1.0.0":"2023-11-01T15:35:23.599Z","1.0.1":"2023-11-01T17:10:09.467Z","1.0.2":"2023-11-02T11:05:32.856Z","1.0.3":"2023-11-02T13:01:46.263Z","1.0.4":"2023-11-02T13:16:10.708Z"},"author":{"name":"Woebot Health Engineering Team"},"license":"MIT","description":"serverless-simplify-default-exec-role-plugin","maintainers":[{"email":"tomoconnor@woebot.io","name":"tomoconnor-woebot"},{"email":"frank+npm@woebothealth.com","name":"frankwoebotnpm"}],"readme":"# serverless-simplify-default-exec-role-plugin\n\n** This is a fork of [serverless-simplify-default-exec-role-plugin](https://github.com/shelfio/serverless-simplify-default-exec-role-plugin) by [shelfio](https://github.com/shelfio) **\n\nA quick solution for the `IamRoleLambdaExecution` error: `Maximum policy size of 10240 bytes exceeded`.\n\n- This plugin modifies the `IamRoleLambdaExecution` policy to reduce its size.  \n- Unlike the [original version](https://www.npmjs.com/package/@shelf/serverless-simplify-default-exec-role-plugin), this maintains any custom IAM statements attached to the Lambda role. \n- It also doesn't collapse `\"logs:CreateLogStream\"`, `\"logs:CreateLogGroup\"`, and `\"logs:PutLogEvents\"` permissions into the same IAM statement.\n\n## Installation\n\n```\n$ npm install --dev @woebot/serverless-simplify-default-exec-role-plugin\n```\n\n## Usage\n\nIn your `serverless.yml` file:\n\n```yaml\nplugins:\n  - \"@woebot/serverless-simplify-default-exec-role-plugin\"\n```\n\n## More info\n\nBy default the Serverless framework adds something like the IAM statement below in order to allow write access to CloudWatch log groups that are part of the deployment stack. For stacks with a lot of lambda functions, this can cause the role to exceed the maximum allowed size of 10240 bytes. This plugin reduces the size of the generated lambda role by replacing the resource list with a single ARN to grants write access to _all_ log groups that are part of the same region and account.\n\n### Before\n```json5\n{\n  \"Effect\": \"Allow\",\n  \"Action\": [\"logs:CreateLogStream\", \"logs:CreateLogGroup\"],\n  \"Resource\": [\n    {\n      \"Fn::Sub\": \"arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/production-users-createUser:*\",\n    },\n    {\n      \"Fn::Sub\": \"arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/production-users-updateUser:*\",\n    },\n    {\n      \"Fn::Sub\": \"arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/production-users-deleteUser:*\",\n    },\n    // ... and so on, for each lambda function that logs to cloudwatch\n  ],\n}\n```\n\n### After\n\n```json5\n{\n  \"Effect\": \"Allow\",\n  \"Action\": [\"logs:CreateLogStream\", \"logs:CreateLogGroup\"],\n  \"Resource\": [\n    {\n      \"Fn::Sub\": \"arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:*\",\n    },\n  ],\n}\n```\n\n## License\n\nMIT ©\n","readmeFilename":"README.md"}