You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[AWS Data Lake Architecture](https://aws.amazon.com/big-data/datalakes-and-analytics/)
207
207
-[COVID-19 Data Lake Blog Post](https://aws.amazon.com/blogs/big-data/a-public-data-lake-for-analysis-of-covid-19-data/)
208
-
209
-
210
-
211
-
212
-
## Instructions
213
-
214
-
You can build and deploy the sample application on LocalStack by running our `Makefile` commands. Run `make setup` to create the infrastructure on LocalStack. Run `make stop` to delete the infrastructure by stopping LocalStack.
215
-
216
-
Alternatively, here are instructions to deploy it manually step-by-step.
217
-
218
-
### Creating the S3 bucket
219
-
220
-
We will create an S3 bucket to store the datasets. We will use the `awslocal` CLI to create the bucket.
We will create a Glue Data Catalog to set up the definitions for that data and create the database & tables. We will use the `awslocal` CLI to create the database and tables.
If the StackStatus is `CREATE_COMPLETE`, you can proceed to the next step.
243
-
244
-
### Running Athena SQL queries
245
-
246
-
After the CloudFormation stack has been deployed in LocalStack, you can run queries against the data. To make testing more accessible, we have an [Athena SQL viewer](https://app.localstack.cloud/inst/default/resources/athena/sql) in the LocalStack Web Application. You can run queries against the `covid-19` database in the Glue Data Catalog.
247
-
248
-
Run the query to fetch the hospital beds per US state:
249
-
250
-
```sql
251
-
SELECT*FROMcovid_19.hospital_bedsLIMIT10
252
-
```
253
-
254
-
You will see the results of the query in the Athena SQL viewer:
255
-
256
-

257
-
258
-
Run the query to get agreggated COVID test data and cases:
259
-
260
-
```sql
261
-
SELECT*FROMcovid_19.enigma_aggregation_us_states
262
-
```
263
-
264
-
You will see the results of the query in the Athena SQL viewer:
265
-
266
-

267
-
268
-
Run the query to get the list of Moderna vaccine allocations:
You will see the results of the query in the Athena SQL viewer:
275
-
276
-

277
-
278
-
You can write your own queries to explore the data in the COVID-19 data lake through LocalStack's Athena Resource Browser.
279
-
280
-
## Learn more
281
-
282
-
The sample application is based on a [public AWS sample app](https://github.com/aws-samples/query-data-in-s3-with-amazon-athena-and-aws-sdk-for-dotnet) that leverages Amazon Athena from .NET Core Application using AWS SDK for .NET to run standard SQL to analyze a large amount of data in Amazon S3. See this AWS blog post for more details: [A public data lake for analysis of COVID-19 data](https://aws.amazon.com/blogs/big-data/a-public-data-lake-for-analysis-of-covid-19-data/).
283
-
284
-
## Contributing
285
-
286
-
We appreciate your interest in contributing to our project and are always looking for new ways to improve the developer experience. We welcome feedback, bug reports, and even feature ideas from the community.
287
-
Please refer to the [contributing file](CONTRIBUTING.md) for more details on how to get started.
0 commit comments