This content originally appeared on DEV Community and was authored by Junius Lekgoara
To kick us off we want to install create-aws-tf-lambda utilizing your preferred nodejs package manager.
NB: before we start make AWS account, save the secret and access key in your environment variables or configure it using aws cli
Install create-aws-tf-lambda
npm i create-aws-tf-lambda -g
Create project
Make a new a projet/lambda by running the the following command
create-aws-tf-lambda
cd into the orderStatus project and run build
npm run build
cd into terraform directory, run terraform init then plan and apply
terraform init
terraform plan
terraform apply
congratulations you have deployed your lambda to AWS in seconds
This content originally appeared on DEV Community and was authored by Junius Lekgoara
Junius Lekgoara | Sciencx (2022-01-10T21:24:53+00:00) Quickly build and deploy Nodejs lambda to AWS with Terraform. Retrieved from https://www.scien.cx/2022/01/10/quickly-build-and-deploy-nodejs-lambda-to-aws-with-terraform/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.