Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ksafranski/mock-aws-stack
It's a stack, for aws, that mocks stuff
https://github.com/ksafranski/mock-aws-stack
Last synced: about 1 month ago
JSON representation
It's a stack, for aws, that mocks stuff
- Host: GitHub
- URL: https://github.com/ksafranski/mock-aws-stack
- Owner: ksafranski
- Created: 2024-03-22T15:03:53.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-22T21:41:42.000Z (9 months ago)
- Last Synced: 2024-04-15T09:19:37.993Z (8 months ago)
- Language: TypeScript
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mock AWS Stack
This is a mock AWS stack that can be used for testing purposes. It is built using [LocalStack](https://www.localstack.cloud/)
and [Docker](https://www.docker.com/) with Docker Compose.This base uses Node/TypeScript and runs tests (in watch mode). This can be modified to fit the needs of the project.
## Services
The base version of the repo comes with support for a number of AWS services. This can be expanded with the following:
1. Update the `docker-compose.yml` file to include the new service(s) in the `SERVICES` environment variable.
2. Modify the `startup.sh` script to add the proper AWS CLI commands to create the new service(s).
3. Add definitions to the services in the `/localstack` directory following the
example of the existing services.**NOTE:** For consistency and naming purposes, the service definitions should be named in the format `service_name.json` with underscores to separate words.
## Usage
Running `docker-compose up` will start the LocalStack container and start the services defined in the `docker-compose.yml` file running the default command.
To run specific commands (for example `yarn test:watch`) use:
```bash
docker compose run app yarn test:watch
```There is a `run.sh` utility script that can be used as well:
```bash
./run.sh yarn test:watch
```