code for article pfeilbr/lumigo-cli-playground
lumigo-CLI is a command line tool that contains a collection of helpful commands for working with AWS Lambda and the serverless AWS services it integrates with.
It’s an invaluable tool for serverless development on AWS. It contains commands that let you work with individual services line sending messages to SNS, SQS, and Kinesis. Tailing changes to CloudWatch Logs, DynamoDB, Kinesis, EventBridge, SNS, SQS. Automatically tune lambda for the optimal memory configuration, measure lambda cold starts.
Easy to install via global npm package (npm install lumigo-cli -g
).
Example Usage
# display contents of gzipped cloudfront log file to stdout
# see S3 SQL reference @ https://docs.aws.amazon.com/AmazonS3/latest/dev/s3-glacier-select-sql-reference-select.html
lumigo-cli s3-select-batch \
--region="us-east-1" \
--bucket="com.brianpfeil.cloudfront.logs" \
--prefix="brianpfeil.com/E2IL5HY5XTHLNW.2019-09-17-21.66bbda6b.gz" \
--expression="SELECT * FROM S3Object s" \
--fileType="CSV" \
--compressionType="GZIP"
# list Lambda functions in ALL regions
lumigo-cli list-lambda
Twitter • Reddit