Skip to content

Commit

Permalink
Add missing deploy command
Browse files Browse the repository at this point in the history
  • Loading branch information
rdettai committed Jan 18, 2024
1 parent 094fd31 commit f7783a3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/get-started/tutorials/tutorial-aws-lambda-simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Configure the AWS region and [account id](https://docs.aws.amazon.com/IAM/latest
```bash
export CDK_ACCOUNT=123456789
# us-east-1 is where the Quickwit public dataset bucket is located
export CDK_REGION=us-east-1
```
Expand All @@ -62,7 +63,10 @@ If this region/account pair was not bootstrapped by CDK yet, run:
cdk bootstrap aws://$CDK_ACCOUNT/$CDK_REGION
```
This initializes some basic resources to host artifacts such as Lambda packages.
This initializes some basic resources to host artifacts such as Lambda packages. We can now deploy the stack:
```bash
cdk deploy -a cdk/app.py
```
## Index the HDFS logs dataset
Expand Down Expand Up @@ -102,7 +106,7 @@ Let's start with a query on the field `severity_text` and look for errors: `seve
python cli.py search '{"query":"severity_text:ERROR"}'
```

It should respond under 1 second and return 10 hits out of 345 if you indexed the whole dataset. If you index the first 10,000 documents, you won't have any hits, try to query `INFO` logs instead.
It should respond in under 1 second and return 10 hits out of 345 if you indexed the whole dataset. If you index the first 10,000 documents, you won't have any hits, try to query `INFO` logs instead.
Let's now run a more advanced query: a date histogram with a term aggregation on the `severity_text`` field:
Expand Down

0 comments on commit f7783a3

Please sign in to comment.