1. Packages
  2. AWS
  3. How-to Guides
  4. Building and bundling Lambda dependencies
AWS v6.68.0 published on Monday, Jan 1, 0001 by Pulumi

Building and bundling Lambda dependencies

aws logo
AWS v6.68.0 published on Monday, Jan 1, 0001 by Pulumi

    View Code

    This example shows how to install dependencies and build multiple Lambda functions in different languages and then deploy the results.

    Deploying the Lambda functions

    To deploy the infrastructure, follow the steps below:

    Prerequisites

    1. Install Pulumi
    2. Install NodeJS
    3. Install Docker
    4. Configure AWS Credentials

    You don’t need to install any languages other than NodeJS because we’ll use Docker containers to build the code.

    Steps

    1. Clone this repo: git clone https://github.com/pulumi/examples
    2. Change directory to the correct folder: cd examples/aws-ts-multi-language-lambda
    3. Install all required packages: pulumi install
    4. Run pulumi up

    Once all the resources have deployed, you can run the lambdas and see the outputs.

    Don’t forget to run pulumi destroy when you’re done to delete the resources.

    aws logo
    AWS v6.68.0 published on Monday, Jan 1, 0001 by Pulumi