https://github.com/dozyio/lambda-invocations
AWS Lambda Invocation count for last 28
https://github.com/dozyio/lambda-invocations
aws aws-lambda cloudwatch cloudwatch-metrics go golang
Last synced: 3 months ago
JSON representation
AWS Lambda Invocation count for last 28
- Host: GitHub
- URL: https://github.com/dozyio/lambda-invocations
- Owner: dozyio
- Created: 2022-02-10T23:20:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-14T17:33:47.000Z (over 4 years ago)
- Last Synced: 2025-06-20T11:46:05.228Z (about 1 year ago)
- Topics: aws, aws-lambda, cloudwatch, cloudwatch-metrics, go, golang
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lambda Invocation Stats
Lists the first 50 lambdas per AWS region with an invocation count for the last
28 days.
## Usage
```
Usage:
lambda-invocations [flags]
Flags:
-d, --debug Debug
-e, --env Use environment vars for credentials
-h, --help help for lambda-invocations
-p, --profile string AWS credentials profile name (default "default")
-r, --region string AWS region (e.g. us-east-1). Use "all" for all regions (default "eu-west-2")
```
### Profile Flag -p
If you have multiple AWS profiles, use the -p flag to specify which one to use.
Defaults to "default" profile
### Region Flag -r
Specify a region or use "all" to enumerate all regions.
Defaults to eu-west-2.
### Debug Flag -d
Outputs debugging information
### MFA Accounts
If your account is secured with MFA, you may need to generate a short lived
access token and export environment variables. If this is the case, use the
-e flag to use the environment variables.
Example of how to generate access token:
```
aws sts get-session-token --serial-number --duration-seconds 3600 --token-code --profile
```
## Example output
```
3 Lambda functions found in eu-west-2
+----------------+-----------+-------------+
| FUNCTION | TYPE | INVOCATIONS |
+----------------+-----------+-------------+
| start-instance | python3.9 | 23 |
| lambda-fun | go1.x | 34936 |
| test-go | go1.x | 17737 |
+----------------+-----------+-------------+
```
## Errors
```
Could not get lambdas in
```
This is usually caused because your account does not have access to that region.