1. Packages
  2. AWS Classic
  3. How-to Guides
  4. AWS F# Lambda Web Server

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

AWS F# Lambda Web Server

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

    View Code Deploy this example with Pulumi

    This example creates a web server in AWS lambda using the Giraffe web server

    Deploying the App

    To deploy your infrastructure, follow the below steps.

    Prerequisites

    1. Install Pulumi
    2. Configure AWS Credentials

    Steps

    After cloning this repo, from this working directory, run these commands:

    1. Build and publish the lambda function, making the output available to our Pulumi program.
    dotnet publish ./LambdaWebServer
    
    1. Execute our Pulumi program to archive our published function output, and create our lambda.
    pulumi up -C ./pulumi
    
    1. In a browser, navigate to the URL for websiteUrl. You should see the welcome message.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.40.0 published on Wednesday, Jun 12, 2024 by Pulumi