Skip to content

Commit ecb65f7

Browse files
committed
ease README and configs
1 parent 52767c1 commit ecb65f7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ This image goes with these versions.
1212
### Running the demo
1313

1414
```bash
15-
$ YOUR_REGION=ap-northeast-1 # your region
16-
$ git clone --depth 1 https://github.com/umihico/docker-selenium-lambda.git docker-selenium-lambda && cd $_
17-
$ sls deploy --region $YOUR_REGION
18-
$ sls invoke -f server --region $YOUR_REGION
15+
$ export AWS_REGION=ap-northeast-1 # You can specify region or skip this line. us-east-1 will be used by default.
16+
$ sls create --template-url "https://github.com/umihico/docker-selenium-lambda/tree/main" --path docker-selenium-lambda && cd $_
17+
$ sls deploy
18+
$ sls invoke --function demo # Yay! You will get texts of example.com
1919
```
2020

2121
### Side Project

serverless.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ service: docker-selenium-lambda
33
provider:
44
name: aws
55
stage: ${opt:stage, 'prod'}
6-
region: ${opt:region}
6+
region: ${env:AWS_REGION, 'us-east-1'}
77
ecr:
88
images:
99
test:
1010
path: ./
1111

1212
functions:
13-
server:
13+
demo:
1414
timeout: 60
1515
memorySize: 2048
1616
image:

0 commit comments

Comments
 (0)