Skip to content

Commit 376500d

Browse files
committed
additional minor tweaks on readme
1 parent fd843cc commit 376500d

File tree

10 files changed

+24
-34
lines changed

10 files changed

+24
-34
lines changed

aws-node-express-api/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ serverless deploy
3535

3636
After running deploy, you should see output similar to:
3737

38-
```bash
38+
```
3939
Deploying "aws-node-express-api" to stage "dev" (us-east-1)
4040
4141
✔ Service deployed to stack aws-node-express-api-dev (96s)
@@ -51,7 +51,7 @@ _Note_: In current form, after deployment, your API is public and can be invoked
5151

5252
After successful deployment, you can call the created application via HTTP:
5353

54-
```bash
54+
```
5555
curl https://xxxxxxx.execute-api.us-east-1.amazonaws.com/
5656
```
5757

aws-node-http-api/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This template does not include any kind of persistence (database). For more adva
2323
In order to deploy the example, you need to run the following command:
2424

2525
```
26-
$ serverless deploy
26+
serverless deploy
2727
```
2828

2929
After running deploy, you should see output similar to:

aws-node-scheduled-cron/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ authorAvatar: 'https://avatars3.githubusercontent.com/u/5679763?v=4&s=140'
1313

1414
# Serverless Framework Node Scheduled Cron on AWS
1515

16-
This template demonstrates how to develop and deploy a simple cron-like service running on AWS Lambda using the traditional Serverless Framework.
16+
This template demonstrates how to develop and deploy a simple cron-like service running on AWS Lambda using the Serverless Framework.
1717

1818
This examples defines a single function, `rateHandler` which is triggered by an event of `schedule` type at a rate of 1 per minute. For detailed information about `schedule` event, please refer to corresponding section of Serverless [docs](https://serverless.com/framework/docs/providers/aws/events/schedule/).
1919

@@ -24,7 +24,7 @@ This examples defines a single function, `rateHandler` which is triggered by an
2424
In order to deploy the example, you need to run the following command:
2525

2626
```
27-
$ serverless deploy
27+
serverless deploy
2828
```
2929

3030
After running deploy, you should see output similar to:

aws-node/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ authorAvatar: 'https://avatars1.githubusercontent.com/u/13742415?s=200&v=4'
1313

1414
# Serverless Framework AWS NodeJS Example
1515

16-
This template demonstrates how to deploy a simple NodeJS function running on AWS Lambda using the Serverless Framework. The deployed function does not include any event definitions or any kind of persistence (database). For more advanced configurations check out the [examples repo](https://github.com/serverless/examples/) which includes integrations with SQS, DynamoDB or examples of functions that are triggered in `cron`-like manner. For details about configuration of specific events, please refer to our [documentation](https://www.serverless.com/framework/docs/providers/aws/events/).
16+
This template demonstrates how to deploy a simple NodeJS function running on AWS Lambda using the Serverless Framework. The deployed function does not include any event definitions or any kind of persistence (database). For more advanced configurations check out the [examples repo](https://github.com/serverless/examples/) which include use cases like API endpoints, workers triggered by SQS, persistence with DynamoDB, and scheduled tasks. For details about configuration of specific events, please refer to our [documentation](https://www.serverless.com/framework/docs/providers/aws/events/).
1717

1818
## Usage
1919

@@ -22,7 +22,7 @@ This template demonstrates how to deploy a simple NodeJS function running on AWS
2222
In order to deploy the example, you need to run the following command:
2323

2424
```
25-
$ serverless deploy
25+
serverless deploy
2626
```
2727

2828
After running deploy, you should see output similar to:

aws-python-flask-api/README.md

+2-13
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@ This template configures a single function, `api`, which is responsible for hand
1919

2020
## Usage
2121

22-
### Prerequisites
23-
24-
In order to package your dependencies locally with `serverless-python-requirements`, you need to have `Python3.8` installed locally. You can create and activate a dedicated virtual environment with the following command:
25-
26-
```
27-
python3.8 -m venv ./venv
28-
source ./venv/bin/activate
29-
```
30-
31-
Alternatively, you can also use `dockerizePip` configuration from `serverless-python-requirements`. For details on that, please refer to corresponding [GitHub repository](https://github.com/UnitedIncome/serverless-python-requirements).
32-
3322
### Deployment
3423

3524
This example is made to work with the Serverless Framework dashboard, which includes advanced features such as CI/CD, monitoring, metrics, etc.
@@ -70,8 +59,8 @@ Packaging Python WSGI handler...
7059
✔ Service deployed to stack aws-python-flask-api-dev (104s)
7160
7261
endpoints:
73-
ANY - https://ce9zsxqh6e.execute-api.us-east-1.amazonaws.com/dev/
74-
ANY - https://ce9zsxqh6e.execute-api.us-east-1.amazonaws.com/dev/{proxy+}
62+
ANY - https://xxxxxxxxxe.execute-api.us-east-1.amazonaws.com/dev/
63+
ANY - https://xxxxxxxxxx.execute-api.us-east-1.amazonaws.com/dev/{proxy+}
7564
functions:
7665
api: aws-python-flask-api-dev-api (41 MB)
7766

aws-python-flask-dynamodb-api/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ Packaging Python WSGI handler...
5858
✔ Service deployed to stack aws-python-flask-dynamodb-api-dev (123s)
5959
6060
endpoints:
61-
ANY - https://r9a04q5it7.execute-api.us-east-1.amazonaws.com/dev/
62-
ANY - https://r9a04q5it7.execute-api.us-east-1.amazonaws.com/dev/{proxy+}
61+
ANY - https://xxxxxxxxxx.execute-api.us-east-1.amazonaws.com/dev/
62+
ANY - https://xxxxxxxxxx.execute-api.us-east-1.amazonaws.com/dev/{proxy+}
6363
functions:
6464
api: aws-python-flask-dynamodb-api-dev-api (41 MB)
6565
```
6666

67-
_Note_: In current form, after deployment, your API is public and can be invoked by anyone. For production deployments, you might want to configure an authorizer. For details on how to do that, refer to [http event docs](https://www.serverless.com/framework/docs/providers/aws/events/apigateway/).
67+
_Note_: In current form, after deployment, your API is public and can be invoked by anyone. For production deployments, you might want to configure an authorizer. For details on how to do that, refer to [http event docs](https://www.serverless.com/framework/docs/providers/aws/events/http-api).
6868

6969
### Invocation
7070

aws-python-http-api/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ framework: v4
66
platform: AWS
77
language: python
88
authorLink: 'https://github.com/serverless'
9-
authorName: 'Serverless, inc.'
9+
authorName: 'Serverless, Inc.'
1010
authorAvatar: 'https://avatars1.githubusercontent.com/u/13742415?s=200&v=4'
1111
-->
1212

@@ -21,7 +21,7 @@ This template does not include any kind of persistence (database). For more adva
2121
### Deployment
2222

2323
```
24-
$ serverless deploy
24+
serverless deploy
2525
```
2626

2727
After deploying, you should see output similar to:

aws-python-http-api/serverless.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ frameworkVersion: '4'
44
provider:
55
name: aws
66
runtime: python3.12
7+
78
functions:
89
hello:
910
handler: handler.hello

aws-python-scheduled-cron/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ serverless invoke local --function rateHandler
5858

5959
After invocation, you should see output similar to:
6060

61-
```bash
62-
INFO:handler:Your cron function aws-python-scheduled-cron-dev-rateHandler ran at 15:02:43.203145
61+
```
62+
INFO:handler:Your cron function ran at 15:02:43.203145
6363
```
6464

6565
### Bundling dependencies
6666

6767
In case you would like to include 3rd party dependencies, you will need to use a plugin called `serverless-python-requirements`. You can set it up by running the following command:
6868

69-
```bash
69+
```
7070
serverless plugin install -n serverless-python-requirements
7171
```
7272

aws-python/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This template demonstrates how to deploy a Python function running on AWS Lambda
2222
In order to deploy the example, you need to run the following command:
2323

2424
```
25-
$ serverless deploy
25+
serverless deploy
2626
```
2727

2828
After running deploy, you should see output similar to:
@@ -40,7 +40,7 @@ functions:
4040

4141
After successful deployment, you can invoke the deployed function by using the following command:
4242

43-
```bash
43+
```
4444
serverless invoke --function hello
4545
```
4646

@@ -57,24 +57,24 @@ Which should result in response similar to the following:
5757

5858
You can invoke your function locally by using the following command:
5959

60-
```bash
60+
```
6161
serverless invoke local --function hello
6262
```
6363

6464
Which should result in response similar to the following:
6565

6666
```
6767
{
68-
"statusCode": 200,
69-
"body": "{\"message\": \"Go Serverless v4.0! Your function executed successfully!\"}"
68+
"statusCode": 200,
69+
"body": "{\"message\": \"Go Serverless v4.0! Your function executed successfully!\"}"
7070
}
7171
```
7272

7373
### Bundling dependencies
7474

7575
In case you would like to include third-party dependencies, you will need to use a plugin called `serverless-python-requirements`. You can set it up by running the following command:
7676

77-
```bash
77+
```
7878
serverless plugin install -n serverless-python-requirements
7979
```
8080

0 commit comments

Comments
 (0)