You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aws-ruby-cron-with-dynamodb/README.md
+17-16
Original file line number
Diff line number
Diff line change
@@ -150,29 +150,30 @@ logRetentionInDays: 30
150
150
151
151
## Structure
152
152
153
-
|Path|Explanation|
154
-
|-|-|-|
155
-
|`./src`|All code for the project.|
156
-
|`./src/handlers/create_meal_order`|Each Lambda function has its own folder.
157
-
|`./src/common/`|Space for common, reusable pieces of code.
158
-
|`./src/common/adapters/dynamo_db_adapter.rb`|Adapter for communication with DynamoDB with the usage of AWS SDK for Ruby. Only used for creating new records.
159
-
|`./src/common/services/create_meal_order_service.rb`| The service object pattern is widely used within ruby/rails developers. A class that is responsible for doing only one thing. In our case is creating a meal order to the DynamoDB.
|`./src/handlers/create_meal_order`| Lambda function for creating a meal order. |
157
+
|`./src/common/`|Space for common, reusable pieces of code.|
158
+
|`./src/common/adapters/dynamo_db_adapter.rb`|Adapter for communication with DynamoDB with the usage of AWS SDK for Ruby. Only used for creating new records.|
159
+
|`./src/common/services/create_meal_order_service.rb`| TThe service object pattern is widely used within ruby/rails developers. A class that is responsible for doing only one thing. In our case is creating a meal order to the DynamoDB.|
160
+
161
161
## Serverless plugin
162
162
163
163
For this example, there are two serverless plugins used:
164
164
165
-
|Gem|Explanation|
166
-
|-|-|-|
167
-
|[serverless-ruby-layer](https://www.npmjs.com/package/serverless-ruby-layer)| For bundling ruby gems from `Gemfile` and deploys them to the lambda layer.
168
-
|[serverless-export-env](https://www.npmjs.com/package/serverless-export-env)| For exporting the environment variables defined in `serverless.yml` into a `.env` file, so we can access these environment variables. For the purpose of this project, mostly for the DynamoDB Table name, region, a profile.|
|[serverless-ruby-layer](https://www.npmjs.com/package/serverless-ruby-layer)| For bundling ruby gems from `Gemfile` and deploys them to the lambda layer.|
168
+
|[serverless-export-env](https://www.npmjs.com/package/serverless-export-env)| or exporting the environment variables defined in `serverless.yml` into a `.env` file, so we can access these environment variables. For the purpose of this project, mostly for the DynamoDB Table name, region, a profile.|
169
169
170
170
## Ruby gems
171
171
172
-
|Gem|Explanation|
173
-
|-|-|-|
174
-
|`'aws-sdk-dynamodb'`| It's a part of the AWS SDK for Ruby. Used for DynamoDB, in the case of this example - creation of the new record.
0 commit comments