An open API service indexing awesome lists of open source software.

https://github.com/alvin-rw/alli-lister

AWS Lambda Last Invocation Lister
https://github.com/alvin-rw/alli-lister

aws lambda

Last synced: 5 months ago
JSON representation

AWS Lambda Last Invocation Lister

Awesome Lists containing this project

README

          

# AWS Lambda Last Invocation Lister
CLI tool to list all of your AWS Lambda Functions and their last invocation time and output the result in a CSV file

## Getting started

### Prerequisites
You will need `aws cli` installed in your machine. Run `aws configure` to configure your CLI profile and its default region.
```shell
aws configure
```

### Running the program

Download the compiled binaries from the release page. By default, it will use your "default" profile from your AWS CLI configuration
```shell
alli-lister
```

If you want to use different profile, you can use `-aws-profile` argument
```shell
alli-lister -aws-profile
```

By default, the program will only list the Lambda Functions in your AWS CLI default region. To list all functions in your AWS account's all available regions, use `-all-regions` parameter
```shell
alli-lister -all-regions
```

To run it in debug mode for troubleshooting, set `-debug=true`
```shell
alli-lister -debug=true
```

## Directly running the source code
You can also run the source code directly if you have Go installed
```shell
go run .

# or if you have Make installed
make run
```

If you want to use different profile, you can use `--aws-profile` argument
```shell
go run . --aws-profile
```

To run it in debug mode for troubleshooting, set `--debug=true`
```shell
go run . -debug=true

# or if you have Make installed
make debug
```