Skip to content

Commit 8116ab0

Browse files
committed
Upgrade aws credentials management
1 parent 510c6fc commit 8116ab0

File tree

5 files changed

+191
-67
lines changed

5 files changed

+191
-67
lines changed

README.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,38 +8,37 @@
88
`npm install -g simplify-cli`
99

1010
```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+
1221
╓───────────────────────────────────────────────────────────────╖
13-
║ Simplify CLI - Version 0.1.23
22+
║ Simplify CLI - Version 0.1.24
1423
╙───────────────────────────────────────────────────────────────╜
1524

16-
Create a deployment template: simplify-cli init [--template=]Detector | ShowLog
25+
Create a deployment template: simplify-cli create [--template=]Detector | ShowLog
1726
1. Detector - A Python Detector function based on Python 3.7 runtime.
1827
2. ShowLog - A CloudWatch Log reader function based on NodeJS 12.x.
1928

20-
Create associated CF stack: simplify-cli init [--template=]CloudFront | CognitoUser...
29+
Create associated CF stack: simplify-cli create [--template=]CloudFront | CognitoUser...
2130

2231
1. CloudFront - A template to create a CDN using CloudFront for S3 Website and HTTP APIs origin.
2332
2. CognitoUser - A template to create a Cognito UserPool, Cognito Indentity and Pinpoint analytics.
2433
3. EventScheduler - A CloudWatch scheduler event for triggering a lambda function with schedule expresion.
2534
4. HttpRestapi - A template to create a REST API Gateway that work with Lambda functions.
2635
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.
2837
7. WebsiteS3 - An HTML website hosting by Amazon S3 Bucket that support publishing extension script.
2938

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
3140
```
3241
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-
4342
### Deploy your function
4443
4544
1. simplify-cli deploy --function LambdaTest --source src # resilience deploying your function code

basic/stacks/HttpRestapi/template.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ Description: API Gateway resource stack creation using Simplify CLI
33
Parameters:
44
Environment:
55
Type: String
6-
Default: staging
6+
Default: devs
7+
AllowedValues:
8+
- prod
9+
- demo
10+
- test
11+
- devs
712
LambdaFunctionName:
813
Type: String
914
LambdaFunctionArn:
@@ -296,4 +301,4 @@ Outputs:
296301
- ".execute-api."
297302
- !Ref AWS::Region
298303
- ".amazonaws.com/"
299-
- !Ref Environment
304+
- !Ref Environment
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
A Lambda randomness source to use in common case for other Lambdas
1+
A Lambda randomness source to use in common case for other Lambdas.

0 commit comments

Comments
 (0)