Skip to content

Commit 1029a99

Browse files
authored
fix: Compress images, and fix tables for cron example for ruby (#645)
1 parent e141a6b commit 1029a99

19 files changed

+17
-16
lines changed

aws-ruby-cron-with-dynamodb/README.md

+17-16
Original file line numberDiff line numberDiff line change
@@ -150,29 +150,30 @@ logRetentionInDays: 30
150150

151151
## Structure
152152

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.
160-
153+
| Path | Explanation |
154+
|----------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
155+
| `./src` | All code for the project. |
156+
| `./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+
161161
## Serverless plugin
162162

163163
For this example, there are two serverless plugins used:
164164

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.|
165+
| Plugin | 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) | 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. |
169169

170170
## Ruby gems
171171

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.
175-
|`'faker'`| For generating fake meal order name.|
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 - the creation of the new record. |
175+
| `faker` | For generating fake meal order name. |
176+
176177

177178
## Remove service
178179

Loading
Loading
Loading
Loading
Loading
Loading
Loading
-86.6 KB
Loading
Loading
Loading
Loading
-63.6 KB
Loading
-43.8 KB
Loading
-48.9 KB
Loading
Loading
Loading
-65.6 KB
Loading
-76.9 KB
Loading

0 commit comments

Comments
 (0)