Deploy to AWS Lambda

Buddy lets you automatically update and invoke Lambda functions on AWS infrastructure on every push to branch.

Example pipeline with Lambda deployment and invocationExample pipeline with Lambda deployment and invocation

Tip
If you are new to Buddy, check out our quickstart guides that will tell you how to build, test and deploy your type of application.
Hint

📚 Learn more about Amazon Lambda action features, integrations and alternatives.

Configure pipeline in Buddy

  1. Create a new project in Buddy and select your Git provider:

Creating a new projectCreating a new project

  1. Add a new pipeline and configure the details: name, trigger mode, and branch from which you want to deploy.

Adding a new pipelineAdding a new pipeline

Configure Lambda deployment

Warning
Before you add the actions, make sure that your AWS user has proper Lambda permissions assigned and full programmatic access to AWS.

Buddy offers two Lambda actions:

  • Lambda Deploy: updates the definition of the selected function
  • Lambda Invoke: runs the function with provided parameters

AWS actionsAWS actions

Lambda Deploy

This action has five configuration tabs:

  • Deploy – here you set the repository path and files to ignore (optional)
  • Target – here you select the AWS integration, AWS region, and target function
  • Variables – here you can view your AWS integration variables, and create your own if required
  • Conditions – here you configure the trigger conditions for which the action will run
  • Options – here you define the action's name and behavior on failure and timeout

AWS Lambda Deploy configurationAWS Lambda Deploy configuration

Lambda Invoke

This action is very similar to Lambda Deploy in terms of configuration, with key settings moved to the first tab:

  • Trigger – here you select the AWS integration, AWS region, and target function, and define the payload, client context, and invocation options

AWS Lambda Invoke configurationAWS Lambda Invoke configuration

Last update:
Sep 17, 2024