Starter project to demonstrate how to setup a Typescript api deployed on an AWS lambda function using terraform.
To deploy the application, you will need to have an AWS account and have the AWS CLI configured with your credentials.
- Clone the repository
- Run
pnpm install
to install the dependencies cd api
- Copy the
terraform.tfvars.example
file toterraform.tfvars
- run
terraform init
to initialize the terraform project
To run the application locally, you can use the following command:
pnpm run dev
It will start a local server.
Go to api and run the following commands:
pnpm run build
terraform apply