AWS CLI Tips for Working with Lambda

AWS CLI Tips for Working with Lambda

Sometimes you need to confirm that a Lambda function was updated after your CI/CD pipeline ran, or simply verify that the function exists with the correct name and configuration.

Logging into the AWS Management Console, completing two-factor authentication, and scrolling through a long list of functions can be slow and tedious. Instead, use the AWS CLI to pull the same information straight from your terminal.

1. Choose exactly which fields to display

The option lets you select and format the data you care about. Separate multiple fields with a comma inside square brackets:

Select fields about lambda to display

2. Handle large fleets with pagination

If your account hosts many Lambdas, add --max-items to control page size and let the CLI fetch results in manageable chunks:

Search with pagination

3. Filter by part of the function name

You can also use a JMESPath filter inside to find functions whose names contain a specific substring:

Searching by function name

This returns only the Lambdas whose names include pricing, along with their last-modified timestamps—a quick way to verify that the correct deployments have reached production.

Julio César

Senior Software Engineer | Java | Spring Boot | AWS | React | Angular | LLM | GenAI | CI/CD | MySQL | MongoDB | JUnit | Mockito | APIs

2mo

Thanks for sharing, Renan

Like
Reply
Gabriel Macedo Gomes

Back-End Developer | Java | Spring Boot | MySQL | NodeJs | RESTful APIs

2mo

por onde você recomenda começar? algum serviço ou recurso que considera essencial no início?

Like
Reply
Fabio Stratotti

Software Engineer backend focused | C# | .Net Core | Azure | Angular

2mo

Very helpful

Like
Reply
Guilherme Meirelles

Software Engineer | C# | .Net | Backend | Azure | Devops

2mo

Definitely worth reading

Like
Reply
Rodrigo Canário

Data Scientist | Machine Learning | Python | MLOps | Geophysics

2mo

Super useful tips, Renan! The query and JMESPath filtering are game-changers for keeping Lambda workflows clean and verifiable straight from the terminal. No more console hunting, just fast, scriptable insights!

Like
Reply

To view or add a comment, sign in

Others also viewed

Explore topics