llrm

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: MIT Imports: 14 Imported by: 0

README

llrm

llrm is a CLI tool to clean up AWS Lambda Layer versions.

Each layer publish creates a new version, and old ones must be deleted individually — llrm finds all versions not attached to any function and lets you delete them in bulk.

Installation

mise
mise use -g go:github.com/miztch/llrm@latest
go install
go install github.com/miztch/llrm@latest

Usage

# List unused layer versions (candidates for deletion)
llrm --list

# List all layer versions with attachment status
llrm --list-all

# Delete unused layer versions (with confirmation prompt)
llrm

# Skip confirmation prompt
llrm --yes

Flags

Flag Default Description
--region (env) AWS region (falls back to AWS_DEFAULT_REGION / config)
--name (none) Target a specific layer by exact name
--filter (none) Filter layers by name (substring match)
--keep-versions 0 Keep the N most recent versions per layer; delete older ones
--list false Print candidates without deleting
--list-all false Print all layer versions including attached ones
--yes false Skip confirmation prompt
--output table Output format: table, json, or yaml

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
aws

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL