This repository contains Terraform code to deploy an AWS Lambda function with an alias, set up routing configuration for the alias, and obtain the Lambda URL.
Make sure you have the following prerequisites installed on your machine:
Ensure that you have configured AWS CLI with the necessary credentials.
-
Clone this repository:
git clone https://github.com/jithinjudepaule/lambda-blue-green.git cd lambda-blue-green
-
Initialize Terraform:
terraform init
-
Customize your deployment by modifying the
variables.tf
file. -
Apply the Terraform configuration:
terraform apply
Confirm the changes when prompted.
-
Once the deployment is complete, the Lambda function, alias, and routing configuration will be created.
To destroy the resources created by Terraform and clean up:
terraform destroy