This repository was archived by the owner on Sep 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 run : npm install -g serverless@3.40.0
3333
3434 - name : Install Serverless plugin dependencies
35- run : npm install -g serverless-plugin-additional-stacks serverless- esbuild serverless-prune-plugin
35+ run : npm install -g serverless-esbuild serverless-prune-plugin
3636
3737 - name : Install TypeScript
3838 run : |
Original file line number Diff line number Diff line change @@ -48,26 +48,15 @@ provider:
4848 statements :
4949 - Effect : Allow
5050 Action :
51- - dynamodb:PutItem
52- - dynamodb:UpdateItem
51+ - dynamodb:PutItem # Create
52+ - dynamodb:GetItem # Read
53+ - dynamodb:Scan # Read(all)
54+ - dynamodb:Query # Read
55+ - dynamodb:UpdateItem # Update
56+ - dynamodb:DeleteItem # Delete
5357 Resource :
5458 - arn:aws:dynamodb:${self:provider.region}:${self:provider.environment.AWS_ACCOUNT_ID}:table/Posts
5559 - arn:aws:dynamodb:${self:provider.region}:${self:provider.environment.AWS_ACCOUNT_ID}:table/Counter
56- - Effect : Allow
57- Action :
58- - dynamodb:DeleteItem
59- Resource :
60- - arn:aws:dynamodb:${self:provider.region}:${self:provider.environment.AWS_ACCOUNT_ID}:table/Posts
61- - Effect : Allow
62- Action :
63- - dynamodb:GetItem
64- Resource :
65- - arn:aws:dynamodb:${self:provider.region}:${self:provider.environment.AWS_ACCOUNT_ID}:table/Posts
66- - Effect : Allow
67- Action :
68- - dynamodb:Scan
69- Resource :
70- - arn:aws:dynamodb:${self:provider.region}:${self:provider.environment.AWS_ACCOUNT_ID}:table/Posts
7160
7261functions :
7362 acinsideSL_ConfirmEmail :
@@ -160,7 +149,6 @@ functions:
160149
161150plugins :
162151 - serverless-esbuild
163- - serverless-plugin-additional-stacks
164152 - serverless-prune-plugin
165153
166154custom :
@@ -176,7 +164,7 @@ custom:
176164 format : ' cjs'
177165 prune :
178166 automatic : true
179- number : 2
167+ number : 1
180168
181169package :
182170 individually : true
You can’t perform that action at this time.
0 commit comments