| Key | Value |
|---|---|
| Services | RDS |
| Integrations | AWS CLI |
| Categories | Database |
A demo application illustrating running queries against an RDS database locally using LocalStack. The sample creates an RDS DB instance, executes SQL INSERT and SELECT queries, and cleans up the instance.
- A valid LocalStack for AWS license. Your license provides a
LOCALSTACK_AUTH_TOKENto activate LocalStack. - Docker
localstackCLIawslocalCLI- Python 3
make checkmake installexport LOCALSTACK_AUTH_TOKEN=<your-auth-token>
make startmake runThe script creates an RDS DB instance, runs queries to insert and retrieve records, and deletes the instance.
You should see output similar to:
Creating RDS DB instance
Run DB queries against RDS instance i1
[(1, 'Jane'), (2, 'Alex'), (3, 'Maria')]
Deleting RDS DB instance i1
This code is available under the Apache 2.0 license.