https://github.com/epomatti/aws-timestream
AWS Timestream Sandbox
https://github.com/epomatti/aws-timestream
aws aws-timestream timestream typescript
Last synced: about 2 months ago
JSON representation
AWS Timestream Sandbox
- Host: GitHub
- URL: https://github.com/epomatti/aws-timestream
- Owner: epomatti
- License: mit
- Created: 2022-08-08T00:13:30.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-08T01:35:48.000Z (almost 4 years ago)
- Last Synced: 2025-01-17T18:44:37.865Z (over 1 year ago)
- Topics: aws, aws-timestream, timestream, typescript
- Language: TypeScript
- Homepage:
- Size: 837 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aws-timestream
Sandbox for Timestream.
Create the infrastructure:
```sh
terraform init
terraform apply -auto-approve
```
Install dependencies:
```sh
yarn install
```
Run the script to send data to Timestream:
```sh
yarn run app
```
After writing data, connect to the console and run a query:
```sql
SELECT * FROM "timestream-sandbox"."orders" WHERE time between ago(15m) and now() ORDER BY time DESC LIMIT 10
```
#### Clean-up
```sh
terraform destroy -auto-approve
```