Quickly build and deploy Nodejs lambda to AWS with Terraform

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…


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

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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Quickly build and deploy Nodejs lambda to AWS with Terraform." Junius Lekgoara | Sciencx - Monday January 10, 2022, https://www.scien.cx/2022/01/10/quickly-build-and-deploy-nodejs-lambda-to-aws-with-terraform/
HARVARD
Junius Lekgoara | Sciencx Monday January 10, 2022 » Quickly build and deploy Nodejs lambda to AWS with Terraform., viewed ,<https://www.scien.cx/2022/01/10/quickly-build-and-deploy-nodejs-lambda-to-aws-with-terraform/>
VANCOUVER
Junius Lekgoara | Sciencx - » Quickly build and deploy Nodejs lambda to AWS with Terraform. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/01/10/quickly-build-and-deploy-nodejs-lambda-to-aws-with-terraform/
CHICAGO
" » Quickly build and deploy Nodejs lambda to AWS with Terraform." Junius Lekgoara | Sciencx - Accessed . https://www.scien.cx/2022/01/10/quickly-build-and-deploy-nodejs-lambda-to-aws-with-terraform/
IEEE
" » Quickly build and deploy Nodejs lambda to AWS with Terraform." Junius Lekgoara | Sciencx [Online]. Available: https://www.scien.cx/2022/01/10/quickly-build-and-deploy-nodejs-lambda-to-aws-with-terraform/. [Accessed: ]
rf:citation
» Quickly build and deploy Nodejs lambda to AWS with Terraform | Junius Lekgoara | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.