---
title: "AWS F# Lambda Web Server"
url: "https://www.pulumi.com/dev/examples/aws-fs-lambda-webserver/"
image: "https://www.pulumi.com/assets/og/dev/examples/aws-fs-lambda-webserver.png"
---

# AWS F# Lambda Web Server

- Source on GitHub: https://github.com/pulumi/examples/tree/master/aws-fs-lambda-webserver

## Get started with this example

This example lives in the [pulumi/examples](https://github.com/pulumi/examples/tree/master/aws-fs-lambda-webserver) repo. Pull down just this directory to follow along:

```bash
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examples
git -C pulumi-examples sparse-checkout set aws-fs-lambda-webserver
cd pulumi-examples/aws-fs-lambda-webserver
```

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](https://www.pulumi.com/docs/get-started/install/)
2. [Configure AWS Credentials](https://www.pulumi.com/docs/intro/cloud-providers/aws/setup/)

### 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.

```bash
dotnet publish ./LambdaWebServer
```

2. Execute our Pulumi program to archive our published function output, and create our lambda.
```bash
pulumi up -C ./pulumi
```

3. In a browser, navigate to the URL for `websiteUrl`. You should see the welcome message.
