constellation-load-testing / constellation-local

Constellation's CLI and infrastructure
0 stars 0 forks source link

CLI.3 Draft a command line workflow #11

Closed neebs12 closed 2 years ago

neebs12 commented 2 years ago

Overview

This issue is opened to give an overview of how a constellation deploy script.js would be able to:

Think about:

$ constellation deploy script.js
$ constellation view
$ constellation teardown

See examples:

Teardown Issue

aws --region us-west-2 timestream-write delete-table --database-name sample-database --table-name data_received aws --region us-west-2 timestream-write delete-table --database-name sample-database --table-name http_req-received

... etc.


  - Another Solution 🤔: Timestream Teardown lambda that is attached to an API gateway. That, when hit, is able to dynamically delete the timestream tables then database.

## Required Items for `script.js`
> What do you think a `script.js` script should consist of given what is highlighted in the **overview** section? See example ...

## Implementation

This will NOT include: 
- Home Region - as this will be hardcoded in

This will include:
- Remote Region(s) - ie: `["us-east-1", "ap-southeast-2"]`
- Number of Total VUs
- Percentage split difference between aforementioned remote regions

## Tasks
neebs12 commented 2 years ago

See: https://app.diagrams.net/#G1sPavT1p1V-QE88XFGU8zWTYwApNRrJEm

for some ideas that are yet to be implemented

neebs12 commented 2 years ago

Latest PR finalizes the crucial CLI workflow (visualizer still needs to be completed)