This repository contains a simple example of how to use Pulumi to deploy an AWS Lambda function created using the .NET 6 framework.
Before you begin, make sure you have the following prerequisites installed:
Follow these steps to deploy the AWS Lambda function using Pulumi:
-
Clone this repository to your local machine:
git clone https://github.com/jayasankarp/aws.lambda.qr.code.git cd aws.lambda.qr.code
-
Initialize a new Pulumi stack:
pulumi stack init aws.lambda.qr.code
-
Configure your AWS credentials using the Pulumi CLI:
pulumi config set aws:region us-east-1 # Replace with your desired AWS region pulumi config set aws:profile your-aws-profile-name # If using named profiles
-
Build and publish the .NET 6 Lambda function:
dotnet publish -c Release
-
Deploy the AWS Lambda function using Pulumi:
pulumi up
-
After the deployment is complete, Pulumi will provide you with the AWS Lambda function's endpoint and other relevant information. You can access your Lambda function in the AWS Management Console.
To clean up and destroy the AWS resources created by Pulumi, run:
pulumi destroy
Happy coding! 🚀