|
8 | 8 | `npm install -g simplify-cli` |
9 | 9 |
|
10 | 10 | ```bash |
11 | | -$ simplify-cli init --help |
| 11 | +$ simplify-cli init |
| 12 | + |
| 13 | + - Choose a Project name? (starwars) |
| 14 | + - Choose an S3 Bucket name? (starwars-0920) |
| 15 | + - Choose an Environment? (demo) |
| 16 | + |
| 17 | +$ simplify-cli regiter |
| 18 | +$ simplify-cli login |
| 19 | +$ simplify-cli create --help |
| 20 | + |
12 | 21 | ╓───────────────────────────────────────────────────────────────╖ |
13 | | -║ Simplify CLI - Version 0.1.23 ║ |
| 22 | +║ Simplify CLI - Version 0.1.24 ║ |
14 | 23 | ╙───────────────────────────────────────────────────────────────╜ |
15 | 24 |
|
16 | | -Create a deployment template: simplify-cli init [--template=]Detector | ShowLog |
| 25 | +Create a deployment template: simplify-cli create [--template=]Detector | ShowLog |
17 | 26 | 1. Detector - A Python Detector function based on Python 3.7 runtime. |
18 | 27 | 2. ShowLog - A CloudWatch Log reader function based on NodeJS 12.x. |
19 | 28 |
|
20 | | -Create associated CF stack: simplify-cli init [--template=]CloudFront | CognitoUser... |
| 29 | +Create associated CF stack: simplify-cli create [--template=]CloudFront | CognitoUser... |
21 | 30 |
|
22 | 31 | 1. CloudFront - A template to create a CDN using CloudFront for S3 Website and HTTP APIs origin. |
23 | 32 | 2. CognitoUser - A template to create a Cognito UserPool, Cognito Indentity and Pinpoint analytics. |
24 | 33 | 3. EventScheduler - A CloudWatch scheduler event for triggering a lambda function with schedule expresion. |
25 | 34 | 4. HttpRestapi - A template to create a REST API Gateway that work with Lambda functions. |
26 | 35 | 5. LambdaEdge - A template to create a CDN using CloudFront that works with LambdaEdge function. |
27 | | - 6. Randomness - A Lambda randomness source to use in common case for other Lambdas |
| 36 | + 6. Randomness - A Lambda randomness source to use in common case for other Lambdas. |
28 | 37 | 7. WebsiteS3 - An HTML website hosting by Amazon S3 Bucket that support publishing extension script. |
29 | 38 |
|
30 | | - * Or install from URL: simplify-cli init [--template=]https://github.com/awslabs/...template.yml |
| 39 | + * Or fetch from YAML: simplify-cli create [--template=]https://github.com/awslabs/...template.yml |
31 | 40 | ``` |
32 | 41 | |
33 | | -### Init your environment |
34 | | -
|
35 | | - simplify-cli init Lambda --name LambdaTest |
36 | | -
|
37 | | - Will generate .env, config.json, role.json and policy.json: |
38 | | - |
39 | | - - Prepare your environment (.env file) with a `Function Name` |
40 | | - - Change function configuration if needed, eg: `MemorySize: 128` |
41 | | - - Change resource access policy to your database or others. |
42 | | -
|
43 | 42 | ### Deploy your function |
44 | 43 |
|
45 | 44 | 1. simplify-cli deploy --function LambdaTest --source src # resilience deploying your function code |
|
0 commit comments