AWS F# Lambda Web Server
This example lives in the pulumi/examples repository. Check out just this directory to use it:
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examplesgit -C pulumi-examples sparse-checkout set aws-fs-lambda-webservercd pulumi-examples/aws-fs-lambda-webserverThis 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#
Steps#
After cloning this repo, from this working directory, run these commands:
- Build and publish the lambda function, making the output available to our Pulumi program.
dotnet publish ./LambdaWebServer- Execute our Pulumi program to archive our published function output, and create our lambda.
pulumi up -C ./pulumi- In a browser, navigate to the URL for
websiteUrl. You should see the welcome message.