triage-cli is a command line tool used to deploy Triage to AWS.
npm 8.8+docker 20.10.17+aws-cli version 2
Before starting, be sure that you've logged into aws-cli. triage-cli will securely deploy Triage using your account info and default region.
-
First, install the latest version of the
triage-clinpmpackage withnpm install -g triage-cli -
Create a project directory and
cdinto it. This will contain the files necessary to deploy Triage to your AWS ecosystem.mkdir myTriageProject && cd myTriageProject -
Run
triage init. This will clean up any existing files within the directory (perhaps from a previous deployment) and install dependencies necessary to deploy Triage. It will also generate aconfig.propertiesfile in the current working directory.triage init -
Add the required key/value pairs to the
config.propertiesfile.- At a minimum, you'll need the following:
bootstrap.serverstopic.namepartition.count
- In order for Triage to connect to your Kafka cluster, you'll also need to include the necessary key/value pairs for your specific authentication method.
- At a minimum, you'll need the following:
-
Run
triage deploytriage deployThis step may take some time - up to 5 minutes.
triage-cliwill, among several other intermediary steps, deploy a number of Triage containers equal to thepartition.countspecified inconfig.propertiesand an application load balancer to allow access from the internet. It will also create a DynamoDB table to store any poison pill messages encountered. -
When
triage-clihas finished running, you will receive the following information needed to connect to Triage:- Triage's Network Address
- This is an AWS internet-facing load balancer
- Authentication Key
- This is the key needed by consumer applications wishing to connect to Triage
- DynamoDB Table Name
- This is the name of the table where Triage containers will store dead-letters or poison pills.
- Triage's Network Address
To teardown a Triage deployment, simply navigate to the directory created during deployment and run triage destroy. This will remove all AWS resources associated with Triage.