- Kosli CLI — quick to run, suitable for testing only
- — deploys a for continuous, production-grade reporting
Prerequisites
- Have access to AWS.
- Create a Kosli account if you do not have one.
- Create an ECS, Lambda, or S3 Kosli environment named
aws-env-tutorial. - Get a Kosli API token.
Report using Kosli CLI
This approach is suitable for testing only. Install Kosli CLI if you have not done so, then export your AWS credentials:- ECS
- Lambda
- S3
Report using Terraform module
Install Terraform if you have not done so.- Authenticate to AWS.
-
Store your Kosli API token in as a
SecureStringparameter namedkosli_api_token. -
Create a
main.tffile with the configuration for your environment type:
- ECS
- Lambda
- S3
- Initialize and apply the Terraform configuration:
- To verify the Lambda reporter is running, go to the AWS console → Lambda → your reporter function → Monitor → Logs.
What you’ve accomplished
You have reported a snapshot of your AWS environment to Kosli. Kosli now tracks the running artifacts in that environment and will record changes as they happen. From here you can:- Query your environment with
kosli list snapshotsandkosli get snapshot - Compare snapshots to see what changed
- Trace a running artifact back to its git commit with the From commit to production tutorial